cat << EOF >> "$s"
mount -t $rootFs \$root /newroot
init="\$(busybox awk ' /init=\// { gsub(/.*init=/,NIL,\$0); gsub(/ .*/,NIL,\$0); print \$0; } ' /proc/cmdline )"
-if [ -z "\$init" -o ! -n "/newroot\$init" ]; then
+if [ -z "\$init" -o ! -x "/newroot\$init" ]; then
init=/sbin/init
fi
umount /proc