summaryrefslogtreecommitdiff
path: root/scripts/rl-system.init
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-05 14:20:36 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-05 14:20:36 -0800
commit96d531ad3a5ebcb3719924af73dd529b6bc9a571 (patch)
tree851191021288f7593e7ebf420ce2a9b9af9ce97c /scripts/rl-system.init
parentda563fa3127254122f6c4c6e86b852fdb3ca5180 (diff)
downloadvyatta-cfg-system-96d531ad3a5ebcb3719924af73dd529b6bc9a571.tar.gz
vyatta-cfg-system-96d531ad3a5ebcb3719924af73dd529b6bc9a571.zip
remove hostname setting from rl-system (handled by config).
Diffstat (limited to 'scripts/rl-system.init')
-rwxr-xr-xscripts/rl-system.init13
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init
index 21851ef0..8d933b2d 100755
--- a/scripts/rl-system.init
+++ b/scripts/rl-system.init
@@ -281,18 +281,6 @@ set_promote_secondaries () {
echo 1 > /proc/sys/net/ipv4/conf/all/promote_secondaries
}
-## if present use hostname from config file
-maybe_hostname () {
- hn=$(sed -n '/^system {$/,/^}$/ {
- /^ \+host-name:/ {
- s/^[^:]*: *//
- s/"//g
- p
- }
- }' $BOOTFILE )
- test -n "$hn" && hostname ${hn}
-}
-
## Update the version information
update_version_info () {
if [ -f ${ofr_sysconfdir}/version.master ]; then
@@ -327,7 +315,6 @@ start () {
reset_promiscous_arp_response
set_ip_forwarding
set_promote_secondaries
- maybe_hostname
update_version_info
clear_apt_config
add_snmp_stats_module