aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/preinit
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-02-08 14:28:50 +0000
committerJo-Philipp Wich <jow@openwrt.org>2016-02-08 14:28:50 +0000
commitcc289e0adb936bf350db2037544d7eb8e5b084c3 (patch)
tree5c91d58a6b92f380989cf4a68bd38b1807e308ea /package/base-files/files/etc/preinit
parenta8936bde1f21ce12ca85a0585eed0a2392180221 (diff)
downloadupstream-cc289e0adb936bf350db2037544d7eb8e5b084c3.tar.gz
upstream-cc289e0adb936bf350db2037544d7eb8e5b084c3.tar.bz2
upstream-cc289e0adb936bf350db2037544d7eb8e5b084c3.zip
base-files: honor CONFIG_TARGET_INIT_PATH
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48678
Diffstat (limited to 'package/base-files/files/etc/preinit')
-rwxr-xr-xpackage/base-files/files/etc/preinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index 31f861edf9..181b332f14 100755
--- a/package/base-files/files/etc/preinit
+++ b/package/base-files/files/etc/preinit
@@ -1,10 +1,10 @@
#!/bin/sh
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2016 OpenWrt.org
# Copyright (C) 2010 Vertical Communications
[ -z "$PREINIT" ] && exec /sbin/init
-export PATH=/usr/sbin:/usr/bin:/sbin:/bin
+export PATH="%PATH%"
pi_ifname=
pi_ip=192.168.1.1
@@ -20,7 +20,7 @@ fs_failsafe_wait_timeout=2
pi_suppress_stderr="y"
pi_init_suppress_stderr="y"
-pi_init_path="/usr/sbin:/usr/bin:/sbin:/bin"
+pi_init_path="%PATH%"
pi_init_cmd="/sbin/init"
. /lib/functions.sh