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.
This commit is contained in:
parent
aa9b8b8552
commit
223cac3f39
1 changed files with 5 additions and 0 deletions
|
@ -491,6 +491,11 @@ class DebianHostname(Hostname):
|
||||||
distribution = 'Debian'
|
distribution = 'Debian'
|
||||||
strategy_class = DebianStrategy
|
strategy_class = DebianStrategy
|
||||||
|
|
||||||
|
class KaliHostname(Hostname):
|
||||||
|
platform = 'Linux'
|
||||||
|
distribution = 'Kali'
|
||||||
|
strategy_class = DebianStrategy
|
||||||
|
|
||||||
class UbuntuHostname(Hostname):
|
class UbuntuHostname(Hostname):
|
||||||
platform = 'Linux'
|
platform = 'Linux'
|
||||||
distribution = 'Ubuntu'
|
distribution = 'Ubuntu'
|
||||||
|
|
Loading…
Reference in a new issue