summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaming4JC <g4jc@openmailbox.org>2017-01-07 19:05:23 -0500
committerGaming4JC <g4jc@openmailbox.org>2017-01-07 19:05:23 -0500
commit8e019b6ffd024fc1a61b8ba4c5aa78076c1ee613 (patch)
tree3085417349b7e14d2f236711d1750fb4a8795a1c
parentfb8b062061ab513d52a3d44b858b499667b8b8c3 (diff)
downloadabslibre-8e019b6ffd024fc1a61b8ba4c5aa78076c1ee613.tar.gz
abslibre-8e019b6ffd024fc1a61b8ba4c5aa78076c1ee613.tar.bz2
abslibre-8e019b6ffd024fc1a61b8ba4c5aa78076c1ee613.zip
hostname-blanker fixes
-rw-r--r--nonprism/hostname-blanker/hostname-blanker.service2
-rw-r--r--nonprism/hostname-blanker/hostname-blanker.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/nonprism/hostname-blanker/hostname-blanker.service b/nonprism/hostname-blanker/hostname-blanker.service
index 3e5362b3a..8a4bd922f 100644
--- a/nonprism/hostname-blanker/hostname-blanker.service
+++ b/nonprism/hostname-blanker/hostname-blanker.service
@@ -4,7 +4,7 @@ Before=network-pre.target
[Service]
Type=oneshot
-ExecStart=/bin/bash /opt/hostname-blanker
+ExecStart=/bin/bash /opt/hostname-blanker.sh
RemainAfterExit=false
[Install]
diff --git a/nonprism/hostname-blanker/hostname-blanker.sh b/nonprism/hostname-blanker/hostname-blanker.sh
index ecdcfd4b4..c19d60eb3 100644
--- a/nonprism/hostname-blanker/hostname-blanker.sh
+++ b/nonprism/hostname-blanker/hostname-blanker.sh
@@ -1,6 +1,7 @@
#!/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