From 48f522455da3a7232aa2f1c5cc3d71a11d243860 Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Fri, 28 Aug 2015 20:35:24 -0700 Subject: [PATCH] Add hostname support for Kali linux 2.0 This patch allows the hostname module to detect and set the hostname for a Kali Linux 2.0 installation. Without this patch, the hostname module raises the following error hostname module cannot be used on platform Linux (Kali) Kali is based off of Debian. --- system/hostname.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/hostname.py b/system/hostname.py index f986a91f8f3..9e7f6a4ef70 100644 --- a/system/hostname.py +++ b/system/hostname.py @@ -491,6 +491,11 @@ class DebianHostname(Hostname): distribution = 'Debian' strategy_class = DebianStrategy +class KaliHostname(Hostname): + platform = 'Linux' + distribution = 'Kali' + strategy_class = DebianStrategy + class UbuntuHostname(Hostname): platform = 'Linux' distribution = 'Ubuntu'