From 0a582af2320569d0c7d79997d50eb55be6689898 Mon Sep 17 00:00:00 2001 From: NIN101 Date: Sun, 30 Jun 2013 12:10:53 +0200 Subject: [PATCH] Also properly detach maemo rootfs in rescueOS/shutdown-cleanup --- rescueOS/shutdown-cleanup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rescueOS/shutdown-cleanup b/rescueOS/shutdown-cleanup index 5cff52a..d656874 100644 --- a/rescueOS/shutdown-cleanup +++ b/rescueOS/shutdown-cleanup @@ -2,7 +2,7 @@ umount_maemo() { sync umount /mnt/maemo -ubidetach -m 5 +ubidetach /dev/ubi_ctrl -d 0 } cd / @@ -27,7 +27,7 @@ sync #reset timer. sleep 3 -i2cset -y -m 0x80 2 0x6b 0x04 0x80 +[ -f /run/charger-runned ] && i2cset -y -m 0x80 2 0x6b 0x04 0x80 sleep 1 echo echo "RescueOS says good bye - have a good day."