* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / network / ifplugd / ifplugd.init
blob39c965a82a899316368db842e46631cfa7df6aa1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/ifplugd/ifplugd.init
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: Starting Network Interface Plugging Daemon
14 # Runlevel: 50 rcX
17 [ -f /etc/ifplugd/ifplugd.conf ] && . /etc/ifplugd/ifplugd.conf
19 main_begin
21     block_begin(start, `Starting ifplugd')
22         for IF in $INTERFACES ; do
23                 eval A=\$ARGS_${IF}
24                 [ "$A" = "" ] && A="$ARGS"
25                 check(`D_sbindir/ifplugd -i $IF $A')
26         done
27                 
28     block_end
30     block_begin(stop, `Stopping ifplugd')
31         for IF in $INTERFACES ; do
32                 check(`D_sbindir/ifplugd -k -i $IF')
33         done
34     block_end
36 main_end