# HG changeset patch # User Christophe Lincoln # Date 1405086121 -7200 # Node ID 0e9e08cd6665743357bda8091774e787ec94ea60 # Parent 95da8328cbb5c704e7f9e80a9b9e31334c1dbaf1 system.sh: dont search for swap on each boot diff -r 95da8328cbb5 -r 0e9e08cd6665 etc/init.d/system.sh --- a/etc/init.d/system.sh Fri Jul 11 11:49:35 2014 +0200 +++ b/etc/init.d/system.sh Fri Jul 11 15:42:01 2014 +0200 @@ -60,19 +60,20 @@ fi # Activate an eventual swap file or partition -if [ "$(blkid | grep 'TYPE="swap"')" ]; then - for swd in $(blkid | sed '/TYPE="swap"/!d;s/:.*//'); do - if ! grep -q "$swd " /etc/fstab; then - echo "Swap memory detected on: $swd" - cat >> /etc/fstab <> /etc/fstab <