[Initng-svn] r2688 - initng/initfiles/daemon
svn at initng.thinktux.net
svn at initng.thinktux.net
Tue Jan 3 01:31:38 CET 2006
Author: trigger
Date: Tue Jan 3 01:31:37 2006
New Revision: 2688
Modified:
initng/initfiles/daemon/ifplugd.ii
Log:
Parse arguments in Debian's daemon/ifplugd* - needs to be properly tested. It's late...
Modified: initng/initfiles/daemon/ifplugd.ii
==============================================================================
--- initng/initfiles/daemon/ifplugd.ii (original)
+++ initng/initfiles/daemon/ifplugd.ii Tue Jan 3 01:31:37 2006
@@ -1,10 +1,21 @@
daemon daemon/ifplugd/* {
need = system/bootmisc;
use = system/static-modules system/coldplug system/ifrename;
- exec daemon = @/usr/sbin/ifplugd@;
+ exec daemon = @/usr/sbin/ifplugd@;
+#ifd debian
+ env_file = /etc/default/ifplugd;
+ script start = {
+ #!/bin/bash
+ IF1=`echo ${NAME} | @sed@ "s/-/_/"`
+ A=`eval echo \$\{ARGS_${IF1}\}`
+ [ -z "${A}" ] && A="${ARGS}"
+
+ @/usr/sbin/ifplugd@ -i ${NAME} ${A};
+ }
+#elsed
exec_args start = -i ${NAME};
+#endd
exec_args stop = -k --wait-on-kill -i ${NAME};
-
pid_file = /var/run/ifplugd.${NAME}.pid;
}
@@ -23,12 +34,7 @@
for IF in ${INTERFACES}
do
- # Do we need these A's? I don't know...
- # IF1=`echo ${IF} | @sed@ "s/-/_/"`
- # A=`eval echo \$\{ARGS_${IF1}\}`
- # [ -z "${A}" ] && A="${ARGS}"
- # Original call: ${IFPLUGD} -i ${IF} ${A}
- ngc -u daemon/ifplugd/${IF} #${A}
+ ngc -u daemon/ifplugd/${IF}
done
}
More information about the Initng-svn
mailing list