Removed subshells and changed '! test' in run scripts to 'test !' because it looks nicer to me

This commit is contained in:
AwesomeAdam54321 2021-06-26 10:59:09 +08:00
parent 7fae5c1ed3
commit d78196b294
7 changed files with 13 additions and 13 deletions

View file

@ -2,7 +2,7 @@
test -e /var/cache/apparmor
test -r /sys/kernel/security/apparmor/.load
test -w /sys/kernel/security/apparmor/.load
! test -e /rofs/etc/apparmor.d
! test -e /run/live/overlay/work
test ! -e /rofs/etc/apparmor.d
test ! -e /run/live/overlay/work
/lib/apparmor/apparmor.systemd reload
exec pause

View file

@ -1,5 +1,5 @@
#!/bin/sh -e
for i in $(echo /lib/modules/*/modules.devname);
for i in $(printf %s\\n /lib/modules/*/modules.devname);
do
test -s $i
done

View file

@ -1,7 +1,7 @@
#!/bin/sh
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )
! grep plymouth.enable=0 /proc/cmdline
! grep nosplash /proc/cmdline
grep splash /proc/cmdline
exec /sbin/plymouthd --no-daemon --mode=shutdown --attach-to-session

View file

@ -1,7 +1,7 @@
#!/bin/sh
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )
! grep plymouth.enable=0 /proc/cmdline
! grep nosplash /proc/cmdline
grep splash /proc/cmdline
exec /sbin/plymouthd --no-daemon --mode=shutdown --attach-to-session

View file

@ -1,7 +1,7 @@
#!/bin/sh
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )
! grep plymouth.enable=0 /proc/cmdline
! grep nosplash /proc/cmdline
grep splash /proc/cmdline
exec /sbin/plymouthd --no-daemon --mode=shutdown --attach-to-session

View file

@ -1,7 +1,7 @@
#!/bin/sh
sv start display-manager plymouth-start getty@tty1
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )
! grep plymouth.enable=0 /proc/cmdline
! grep nosplash /proc/cmdline
grep splash /proc/cmdline
exec /sbin/plymouthd --no-daemon --mode=reboot --attach-to-session

View file

@ -1,7 +1,7 @@
#!/bin/sh
sv start systemd-udev-trigger systemd-udevd keyboard-setup
set -e
( ! grep plymouth.enable=0 /proc/cmdline )
( ! grep nosplash /proc/cmdline )
! grep plymouth.enable=0 /proc/cmdline
! grep nosplash /proc/cmdline
grep splash /proc/cmdline
exec /sbin/plymouthd --no-daemon --mode=boot --attach-to-session