slitaz-boot-scripts rev 420
system.sh: add "noswap" kernel option, auth test
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Jan 06 18:33:12 2016 +0000 (2016-01-06) |
parents | 34162aea5267 |
children | 73e2c7d041ab |
files | etc/init.d/system.sh |
line diff
1.1 --- a/etc/init.d/system.sh Thu Dec 24 11:38:20 2015 +0100 1.2 +++ b/etc/init.d/system.sh Wed Jan 06 18:33:12 2016 +0000 1.3 @@ -61,6 +61,7 @@ 1.4 fi 1.5 1.6 # Activate an eventual swap file or partition 1.7 +if ! grep -q 'noswap' /proc/cmdline; then 1.8 if [ "$(blkid | grep 'TYPE="swap"')" ]; then 1.9 for swd in $(blkid | sed '/TYPE="swap"/!d;s/:.*//'); do 1.10 if ! grep -q "$swd " /etc/fstab; then 1.11 @@ -76,6 +77,7 @@ 1.12 swapon -a 1.13 status 1.14 fi 1.15 +fi 1.16 1.17 # Start TazPanel 1.18 [ -x /usr/bin/tazpanel ] && tazpanel start