]>
git.ipfire.org Git - thirdparty/dracut.git/blob - test/TEST-50-MULTINIC/client-init.sh
529379f0e57f86dcc2a0e3d8973487567da7d73b
3 while read -r _line ||
[ -n "$_line" ]; do
15 for _o
in $CMDLINE; do
16 if [ "${_o%%=*}" = "${1%%=*}" ]; then
17 if [ -n "${1#*=}" -a "${1#*=*}" != "${1}" ]; then
18 # if $1 has a "=<value>", we want the exact match
19 if [ "$_o" = "$1" ]; then
26 if [ "${_o#*=}" = "$_o" ]; then
27 # if cmdline argument has no "=<value>", we assume "=1"
37 if [ -n "$_val" ]; then
38 [ "x$_doecho" != "x" ] && echo "$_val";
45 local _deprecated _newoption
46 while [ $# -gt 0 ]; do
48 -d) _deprecated
=1; shift;;
49 -y) if _dogetarg
$2 >/dev
/null
; then
50 if [ "$_deprecated" = "1" ]; then
51 [ -n "$_newoption" ] && warn
"Kernel command line option '$2' is deprecated, use '$_newoption' instead." || warn
"Option '$2' is deprecated."
58 -n) if _dogetarg
$2 >/dev
/null
; then
60 if [ "$_deprecated" = "1" ]; then
61 [ -n "$_newoption" ] && warn
"Kernel command line option '$2' is deprecated, use '$_newoption=0' instead." || warn
"Option '$2' is deprecated."
67 *) if [ -z "$_newoption" ]; then
71 if [ "$_deprecated" = "1" ]; then
72 [ -n "$_newoption" ] && warn
"Kernel command line option '$1' is deprecated, use '$_newoption' instead." || warn
"Option '$1' is deprecated."
89 [ $?
-ne 0 -a -z "$_b" ] && _b
="$_default"
91 [ $_b = "0" ] && return 1
92 [ $_b = "no" ] && return 1
93 [ $_b = "off" ] && return 1
98 exec >/dev
/console
2>&1
100 export PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
101 strstr
() { [ "${1##*"$2"*}" != "$1" ]; }
102 strglobin
() { [ -n "$1" -a -z "${1##*$2*}" ]; }
103 CMDLINE
=$
(while read line ||
[ -n "$line" ]; do echo $line;done < /proc
/cmdline
)
105 export PS1
='initramfs-test:\w\$ '
107 echo "made it to the rootfs! Powering down."
108 for i
in /run
/initramfs
/net.
*.did-setup
; do
109 [ -f "$i" ] ||
continue
110 strglobin
"$i" ":*:*:*:*:" && continue
112 IFACES
+="${i##*/net.} "
119 getargbool
0 rd.shell
&& sh
-i