diff options
author | 2016-10-24 15:29:22 -0700 | |
---|---|---|
committer | 2016-10-24 15:29:22 -0700 | |
commit | fdf03428319c30a617edc160007fb8803d9e8158 (patch) | |
tree | e9651c417b7e5e58afcf1421b1f4d36f61d0f3ee /net/udhcpc.sh.Linux.in | |
parent | sh/udhcpc-hook.sh: classless static routes (diff) | |
download | netifrc-fdf03428319c30a617edc160007fb8803d9e8158.tar.gz netifrc-fdf03428319c30a617edc160007fb8803d9e8158.tar.bz2 netifrc-fdf03428319c30a617edc160007fb8803d9e8158.zip |
Switch /var/run to /run.
Use /run directly, instead of /var/run, for starting any internal
daemons. This allows netifrc to earlier, before /var is available.
X-Gentoo-Bug: 545364
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=545364
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'net/udhcpc.sh.Linux.in')
-rw-r--r-- | net/udhcpc.sh.Linux.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/udhcpc.sh.Linux.in b/net/udhcpc.sh.Linux.in index b6e0327..030d89e 100644 --- a/net/udhcpc.sh.Linux.in +++ b/net/udhcpc.sh.Linux.in @@ -12,7 +12,7 @@ _config_vars="$_config_vars dhcp udhcpc" udhcpc_start() { - local args= opt= opts= pidfile="/var/run/udhcpc-${IFACE}.pid" + local args= opt= opts= pidfile="/run/udhcpc-${IFACE}.pid" local sendhost=true cachefile="/var/cache/udhcpc-${IFACE}.lease" eval args=\$udhcpc_${IFVAR} @@ -24,7 +24,7 @@ udhcpc_start() # This omits the Gentoo specific patch to busybox, # but it creates temporary files. # We can move this stuff to udhcpc hook script to avoid that, should we do? - local conf="/var/run/udhcpc-${IFACE}.conf" + local conf="/run/udhcpc-${IFACE}.conf" >"$conf" # Map some generic options to dhcpcd for opt in ${opts}; do @@ -83,7 +83,7 @@ udhcpc_start() udhcpc_stop() { - local pidfile="/var/run/udhcpc-${IFACE}.pid" opts= + local pidfile="/run/udhcpc-${IFACE}.pid" opts= [ ! -f "${pidfile}" ] && return 0 # Get our options @@ -104,7 +104,7 @@ udhcpc_stop() start-stop-daemon --stop --exec /bin/busybox --pidfile "${pidfile}" eend $? - if [ -e "/var/run/udhcpc-${IFACE}.conf" ]; then - rm -f "/var/run/udhcpc-${IFACE}.conf" + if [ -e "/run/udhcpc-${IFACE}.conf" ]; then + rm -f "/run/udhcpc-${IFACE}.conf" fi } |