Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1485969
 поиск   регистрация   авторизация 
 
Группа :: Система/Ядро и оборудование
Пакет: hibernate

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: hibernate-add_rcval_cleanup.patch


diff -ruN hibernate-script-1.10-old/init.d/hibernate-cleanup.sh hibernate-script-1.10/init.d/hibernate-cleanup.sh
--- hibernate-script-1.10-old/init.d/hibernate-cleanup.sh	2005-07-13 17:08:28 +0300
+++ hibernate-script-1.10/init.d/hibernate-cleanup.sh	2005-08-10 15:09:37 +0300
@@ -15,6 +15,7 @@
 #   ln -s ../init.d/hibernate-cleanup.sh /etc/rcS.d/S31hibernate-cleanup.sh
 
 HIBERNATE_FILEWRITER_TRAIL="/var/run/suspend2_filewriter_image_exists"
+IS_CLEAN=0
 
 get_swap_id() {
 	local line
@@ -49,6 +50,7 @@
 				echo -n "$where"
 				clear_swap $where
 				echo -n ", "
+				IS_CLEAN=1
 		esac
 	done < /etc/fstab
 }
@@ -71,4 +73,6 @@
 check_filewriter_sig
 echo "done."
 
+[ $IS_CLEAN -eq 0 ] || swapoff -a; swapon -a
+
 exit 0
 
design & coding: Vladimir Lettiev aka crux © 2004-2005