[arch-general] [PATCH 30/48] bashify bringing up the loopback adaptor.
Thomas Bächler
thomas at archlinux.org
Wed Jun 30 18:13:27 EDT 2010
Am 30.06.2010 23:47, schrieb Victor Lowther:
> ---
> rc.sysinit | 9 ++++-----
> 1 files changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/rc.sysinit b/rc.sysinit
> index 1d16224..31636e5 100755
> --- a/rc.sysinit
> +++ b/rc.sysinit
> @@ -113,13 +113,12 @@ fi
> run_hook sysinit_udevsettled
>
> # bring up the loopback interface
> -if [ -d /sys/class/net/lo ]; then
> +if [[ -d /sys/class/net/lo ]]; then
> stat_busy "Bringing up loopback interface"
> - /sbin/ifconfig lo 127.0.0.1 up
> - if [ $? -ne 0 ]; then
> - stat_fail
> + if ! /sbin/ifconfig lo 127.0.0.1 up; then
> + stat_fail
> else
> - stat_done
> + stat_done
> fi
> fi
>
Hmm, this could be done with the status() function instead, right? No
need for stat_{busy,fail,done} then.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20100701/364c6262/attachment.bin>
More information about the arch-general
mailing list