From 96d531ad3a5ebcb3719924af73dd529b6bc9a571 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 5 Nov 2007 14:20:36 -0800 Subject: remove hostname setting from rl-system (handled by config). --- scripts/rl-system.init | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'scripts/rl-system.init') 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 -- cgit v1.2.3