summaryrefslogtreecommitdiff
path: root/rc.multi
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-09-15 20:05:07 +0000
committerJudd Vinet <judd@archlinux.org>2005-09-15 20:05:07 +0000
commite772aeae76f2ad704a834dc17df02dbc137a6573 (patch)
tree954dcf245b4eedb69badab02e5b22459364c5cb2 /rc.multi
parent0be8f5b2d33fc6160e2a62d33fc1f828218fa90a (diff)
modified netcfg/network scripts -- you can list multiple entries in NET_PROFILES that use the same INTERFACE. They will be started one at a time, and the first successful one will be kept.
Diffstat (limited to 'rc.multi')
-rwxr-xr-xrc.multi7
1 files changed, 3 insertions, 4 deletions
diff --git a/rc.multi b/rc.multi
index 94c2dba..d8a1881 100755
--- a/rc.multi
+++ b/rc.multi
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# /etc/rc.multi
#
@@ -8,8 +8,8 @@
# Start daemons
for daemon in "${DAEMONS[@]}"; do
- if [[ `echo $daemon | grep '^[^\!]' | wc -l` -eq 1 ]]; then
- if [[ `echo $daemon | grep '^[^\@]' | wc -l` -eq 1 ]]; then
+ if [ "$daemon" = "${daemon#!}" ]; then
+ if [ "$daemon" = "${daemon#@}" ]; then
/etc/rc.d/$daemon start
else
stat_bkgd "Starting ${daemon:1}"
@@ -25,5 +25,4 @@ if [ -x /etc/rc.local ]; then
/etc/rc.local
fi
-# End of file
# vim: set ts=2 noet: