prevent kernel panic if variables are invalid

This commit is contained in:
illiliti 2020-05-27 11:35:05 +03:00
parent 12a3429f36
commit 129ad17b36

6
init
View File

@ -77,9 +77,9 @@ parse_cmdline()
rootflags=*) root_opts="${line##*=}" ;; rootflags=*) root_opts="${line##*=}" ;;
ro | rw) rorw="-o $line" ;; ro | rw) rorw="-o $line" ;;
--) init_args="${cmdline##*--}"; break ;; --) init_args="${cmdline##*--}"; break ;;
*=*) export "$line" ;; *=*) command export "$line" ;;
*) export "${line}=1" ;; *) command export "${line}=1" ;;
esac; done esac; done 2> /dev/null || :
} }
setup_devmgr() setup_devmgr()