summaryrefslogtreecommitdiff
path: root/net.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-09-19 13:53:40 +0000
committerRoy Marples <roy@marples.name>2007-09-19 13:53:40 +0000
commit77f9015f0bf09c5ef3c51009e21d8e687006c3e4 (patch)
tree5f62c36e8a9e3c3dddeef6a086a0708af35dfcd3 /net.Linux
parent987c72f12f41b8108447810fe84fd9f16e6d29d7 (diff)
downloadopenrc-77f9015f0bf09c5ef3c51009e21d8e687006c3e4.tar.gz
openrc-77f9015f0bf09c5ef3c51009e21d8e687006c3e4.tar.bz2
openrc-77f9015f0bf09c5ef3c51009e21d8e687006c3e4.tar.xz
/lib/rcscripts -> /lib/rc
Diffstat (limited to 'net.Linux')
-rw-r--r--net.Linux/Makefile2
-rw-r--r--net.Linux/udhcpc.sh5
2 files changed, 5 insertions, 2 deletions
diff --git a/net.Linux/Makefile b/net.Linux/Makefile
index 3059f1e..a147274 100644
--- a/net.Linux/Makefile
+++ b/net.Linux/Makefile
@@ -1,4 +1,4 @@
-DIR = /$(LIB)/rcscripts/net
+DIR = $(RC_LIB)/net
FILES = adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \
ccwgroup.sh clip.sh ifconfig.sh ifplugd.sh ip6to4.sh ipppd.sh \
iproute2.sh iwconfig.sh netplugd.sh pppd.sh pump.sh tuntap.sh \
diff --git a/net.Linux/udhcpc.sh b/net.Linux/udhcpc.sh
index af5bbea..2fe23bd 100644
--- a/net.Linux/udhcpc.sh
+++ b/net.Linux/udhcpc.sh
@@ -65,8 +65,11 @@ udhcpc_start() {
;;
esac
+ local script="${RC_LIBDIR}"/sh/udhcpc.sh
+ [ -x "${script}" ] || script=/lib/rcscripts/sh/udhcpc.sh
+
eval "${x}" "${args}" --interface="${IFACE}" --now \
- --script="${RC_LIBDIR}"/sh/udhcpc.sh \
+ --script="${script}" \
--pidfile="${pidfile}" >/dev/null
eend $? || return 1