Shell programming police for sophistication. It's not necessary
to enclose `prog` backquote command substitution with double quotes as it produces a quoted string. Other changes are pending this time.
This commit is contained in:
parent
c588bbbe76
commit
f412f76212
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: network,v 1.21 2000/11/17 04:19:06 lukem Exp $
|
||||
# $NetBSD: network,v 1.22 2000/11/21 08:39:50 nisimura Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: network
|
||||
@ -32,7 +32,7 @@ network_start()
|
||||
# DHCP later, as we will probably get the
|
||||
# hostname at that time.
|
||||
#
|
||||
if ! checkyesno dhclient && [ -z "`hostname`" ]; then
|
||||
if ! checkyesno dhclient && [ -z `hostname` ]; then
|
||||
warn "\$hostname not set."
|
||||
fi
|
||||
fi
|
||||
@ -90,7 +90,7 @@ network_start()
|
||||
#
|
||||
if [ "$net_interfaces" != NO ]; then
|
||||
if checkyesno auto_ifconfig; then
|
||||
tmp="`ifconfig -l`"
|
||||
tmp=`ifconfig -l`
|
||||
for cloner in `ifconfig -C 2>/dev/null`; do
|
||||
for int \
|
||||
in `/bin/ls /etc/ifconfig.${cloner}[0-9]* 2>/dev/null`; do
|
||||
@ -103,7 +103,7 @@ network_start()
|
||||
echo -n 'Configuring network interfaces:'
|
||||
for int in $tmp; do
|
||||
eval args=\$ifconfig_$int
|
||||
if [ -n "$args" ]; then
|
||||
f [ -n "$args" ]; then
|
||||
echo -n " $int"
|
||||
ifconfig $int $args
|
||||
elif [ -f /etc/ifconfig.$int ]; then
|
||||
@ -348,7 +348,7 @@ network_stop()
|
||||
echo -n 'Downing network interfaces:'
|
||||
if [ "$net_interfaces" != NO ]; then
|
||||
if checkyesno auto_ifconfig; then
|
||||
tmp="`ifconfig -l`"
|
||||
tmp=`ifconfig -l`
|
||||
else
|
||||
tmp="$net_interfaces"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user