update network service examples
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ logdir="/var/log/service/`(cd ..;basename $PWD)`"
|
||||
mkdir -p "$logdir" 2>/dev/null
|
||||
chown -R "$user": "$logdir"
|
||||
chmod -R go-rwxst,u+rwX "$logdir"
|
||||
rm logdir
|
||||
rm -rf logdir
|
||||
ln -s "$logdir" logdir
|
||||
|
||||
# make this dir accessible to logger
|
||||
|
@@ -8,6 +8,9 @@ pwd="$PWD"
|
||||
|
||||
if="${PWD##*/ifplugd_}"
|
||||
|
||||
echo "* Upping iface $if"
|
||||
ip link set dev "$if" up
|
||||
|
||||
echo "* Starting ifplugd on $if [$$]"
|
||||
exec \
|
||||
env - PATH="$PATH" \
|
||||
|
Reference in New Issue
Block a user