commit 0250165791df0e713de86e35297bc4756b0c7bfb
parent 6d77ea79c95a7931833002579605a648ffcef4e0
Author: Morel BĂ©renger <berenger.morel@neutralite.org>
Date: Thu, 14 Nov 2019 15:18:23 +0100
moved dhcpc.run into etc/busybox/run + use SVNAME as IFACE if IFACE not
defined
Diffstat:
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/etc/busybox/run/dhcpc.run b/etc/busybox/run/dhcpc.run
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /etc/runit/common
+
+printf "Preparation done, starting self.\n"
+exec chpst -b udhcpc busybox -i ${IFACE:-$SVNAME} -R -f
diff --git a/etc/runit/2 b/etc/runit/2
@@ -10,7 +10,7 @@ for i in $(busybox ip -o link | cut -f2 -d: | grep -v '\<lo\>')
do
mkdir $SVDIR/$i/log -p
ln -s /etc/runit/log.run $SVDIR/$i/log/run
- ln -s /etc/runit/dhcpc.run $SVDIR/$i/run
+ ln -s /etc/busybox/dhcpc.run $SVDIR/$i/run
done
find /etc/service/ -type l -execdir cp -r -L -t $SVDIR {} \+
diff --git a/etc/runit/dhcpc.run b/etc/runit/dhcpc.run
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-. /etc/runit/common
-
-printf "Preparation done, starting self.\n"
-exec chpst -b udhcpc busybox -i ${IFACE:-$(basename $(pwd))} -R -f