Unverified Commit 2b0d4847 by Christian Brauner Committed by GitHub

Merge pull request #3244 from Rachid-Koucha/master

Adaptation to latest busybox
parents d55ea1ec e76e315c
...@@ -140,7 +140,7 @@ EOF ...@@ -140,7 +140,7 @@ EOF
chmod 644 "${rootfs}/etc/inittab" || return 1 chmod 644 "${rootfs}/etc/inittab" || return 1
# Look for the pathname of "default.script" from the help of udhcpc # Look for the pathname of "default.script" from the help of udhcpc
DEF_SCRIPT=`${BUSYBOX_EXE} udhcpc -h 2>&1 | grep -- '-s,--script PROG' | cut -d'/' -f2- | cut -d')' -f1` DEF_SCRIPT=`${BUSYBOX_EXE} udhcpc --help 2>&1 | egrep -- '-s.*Run PROG' | cut -d'/' -f2- | cut -d')' -f1`
DEF_SCRIPT_DIR=`dirname /${DEF_SCRIPT}` DEF_SCRIPT_DIR=`dirname /${DEF_SCRIPT}`
mkdir -p ${rootfs}/${DEF_SCRIPT_DIR} mkdir -p ${rootfs}/${DEF_SCRIPT_DIR}
chmod 644 ${rootfs}/${DEF_SCRIPT_DIR} || return 1 chmod 644 ${rootfs}/${DEF_SCRIPT_DIR} || return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment