summaryrefslogtreecommitdiff
path: root/nonprism/hostname-blanker/hostname-blanker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nonprism/hostname-blanker/hostname-blanker.sh')
-rw-r--r--nonprism/hostname-blanker/hostname-blanker.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/nonprism/hostname-blanker/hostname-blanker.sh b/nonprism/hostname-blanker/hostname-blanker.sh
deleted file mode 100644
index c19d60eb3..000000000
--- a/nonprism/hostname-blanker/hostname-blanker.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-# This script wipes hostname so that DHCP can't send it over the network
-#hostnamectl set-hostname localhost
-sed -i '/dhcp=/c\dhcp=dhclient' /etc/NetworkManager/NetworkManager.conf
-echo "localhost" > /etc/hostname
-wait
-sed -i '/127.0.0.1/c\127.0.0.1 localhost.localdomain localhost 'localhost'' /etc/hosts ##properly sets our new host in /etc/hosts file
-wait
-sysctl kernel.hostname=localhost
-wait
-hostname localhost ##avoids need to reboot before showing our new hostname in terminals etc.
-wait