From e772aeae76f2ad704a834dc17df02dbc137a6573 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Thu, 15 Sep 2005 20:05:07 +0000 Subject: 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. --- rc.multi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rc.multi') 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: -- cgit v1.2.3