initscripts: misc changes, bump to 2009-03.
--HG-- extra : convert_revision : 97fb9127cb91659331f1574a19a8871fed30a0ab
This commit is contained in:
@@ -21,7 +21,7 @@ network_start()
|
||||
{
|
||||
# set hostname, turn on network
|
||||
#
|
||||
echo "=> Starting network."
|
||||
echo "Starting network."
|
||||
|
||||
# If $hostname is set, use it for my Internet name,
|
||||
# otherwise use /etc/myname
|
||||
@@ -30,7 +30,7 @@ network_start()
|
||||
hostname=$(cat /etc/myname)
|
||||
fi
|
||||
if [ -n "$hostname" ]; then
|
||||
echo "=> Setting hostname: $hostname."
|
||||
echo "Setting hostname: $hostname."
|
||||
hostname $hostname
|
||||
fi
|
||||
|
||||
@@ -87,7 +87,7 @@ network_start()
|
||||
tmp="$net_interfaces"
|
||||
fi
|
||||
|
||||
echo -n '=> Configuring network interfaces:'
|
||||
echo -n 'Configuring network interfaces:'
|
||||
for int in ${tmp}; do
|
||||
eval argslist=\$ifconfig_$int
|
||||
|
||||
@@ -200,11 +200,11 @@ network_start()
|
||||
|
||||
network_stop()
|
||||
{
|
||||
echo "=> Stopping network."
|
||||
echo "Stopping network."
|
||||
|
||||
# down interfaces
|
||||
#
|
||||
echo -n '=> Downing network interfaces:'
|
||||
echo -n 'Downing network interfaces:'
|
||||
if [ "$net_interfaces" != NO ]; then
|
||||
if checkyesno auto_ifconfig; then
|
||||
tmp=$(ls /sys/class/net/eth*)
|
||||
|
||||
Reference in New Issue
Block a user