xf.li | 8611891 | 2025-03-19 20:07:27 -0700 | [diff] [blame^] | 1 | # |
| 2 | # Set rcS vars |
| 3 | # |
| 4 | |
| 5 | [ -f /etc/default/rcS ] && . /etc/default/rcS || true |
| 6 | |
| 7 | # check for bootoption 'noswap' and do not activate swap |
| 8 | # partitions/files when it is set. |
| 9 | if [ -r /proc/cmdline ] && grep -qw 'noswap' /proc/cmdline ; then |
| 10 | NOSWAP=yes |
| 11 | else |
| 12 | NOSWAP=no |
| 13 | fi |
| 14 | |
| 15 | # Accept the same 'quiet' option as the kernel |
| 16 | if [ ! -e /proc/cmdline ] || egrep -qw 'quiet' /proc/cmdline ; then |
| 17 | VERBOSE="no" |
| 18 | fi |
| 19 | |
| 20 | # But allow both rcS and the kernel options 'quiet' to be overrided |
| 21 | # when INIT_VERBOSE=yes is used as well. |
| 22 | [ "$INIT_VERBOSE" ] && VERBOSE="$INIT_VERBOSE" || true |