[configs/releng] Fix script= expansion

Fix FS#40049

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2014-04-25 11:42:41 -03:00
parent 6836b770a2
commit 96499e4fd7

View File

@ -5,7 +5,7 @@ script_cmdline ()
local param
for param in $(< /proc/cmdline); do
case "${param}" in
script=*) echo "${param##*=}" ; return 0 ;;
script=*) echo "${param#*=}" ; return 0 ;;
esac
done
}