Correct strstr/strglobin in test suite.
Previous commit included versions of strstr/strglobin in the test suite files that did not match those in dracut-lib.sh.master
parent
2c19a5fa78
commit
9cf339ada3
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
>/dev/watchdog
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec </dev/console >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
>/dev/watchdog
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec </dev/console >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
>/dev/watchdog
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec </dev/console >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
command -v plymouth >/dev/null && plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
command -v plymouth >/dev/null && plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
plymouth --quit
|
||||
exec >/dev/console 2>&1
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ exec >/dev/console 2>&1
|
|||
export TERM=linux
|
||||
export PS1='initramfs-test:\w\$ '
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
|
||||
stty sane
|
||||
strstr "$CMDLINE" "rd.shell" && sh -i
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
exec >/dev/console 2>&1
|
||||
set -x
|
||||
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
strstr() { [ "${1#*"$2"*}" != "$1" ]; }
|
||||
strglobin() { [ -n "$1" -a -z "${1#*$2*}" ]; }
|
||||
strstr() { [ "${1##*"$2"*}" != "$1" ]; }
|
||||
strglobin() { [ -n "$1" -a -z "${1##*$2*}" ]; }
|
||||
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||||
export TERM=linux
|
||||
export PS1='initramfs-test:\w\$ '
|
||||
|
|
|
|||
Loading…
Reference in New Issue