[prev in list] [next in list] [prev in thread] [next in thread]
List: ipcop-svn
Subject: [Ipcop-svn] SF.net SVN: ipcop:[2963] ipcop/trunk
From: gespinasse () users ! sourceforge ! net
Date: 2009-05-31 22:08:10
Message-ID: E1MAtCM-00018W-HH () d5vjzd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 2963
http://ipcop.svn.sourceforge.net/ipcop/?rev=2963&view=rev
Author: gespinasse
Date: 2009-05-31 22:08:10 +0000 (Sun, 31 May 2009)
Log Message:
-----------
We were racy and if with previous busybox version we win the reboot race, with \
busybox-1.14, we loose the race
- we were calling in installer reboot,
- inittab was running halt due to the shutdown level
- installer was restarted
Simply call /etc/halt from installer, we no more need the shutdown line in inittab
As I am there, use umount -a -r to unmount everything and -r to remount read only \
what is still busy
Modified Paths:
--------------
ipcop/trunk/config/install/halt
ipcop/trunk/config/install/inittab
ipcop/trunk/src/installer/installer.c
Modified: ipcop/trunk/config/install/halt
===================================================================
--- ipcop/trunk/config/install/halt 2009-05-31 06:16:12 UTC (rev 2962)
+++ ipcop/trunk/config/install/halt 2009-05-31 22:08:10 UTC (rev 2963)
@@ -7,8 +7,5 @@
/bin/killall5 -9
sleep 3
echo "Unmounting filesystems"
-/bin/umount /sys
-/bin/umount /proc
-#echo "Unmounting root"
-#/bin/mount -n -o remount,ro /
+/bin/umount -a -r
/bin/reboot
Modified: ipcop/trunk/config/install/inittab
===================================================================
--- ipcop/trunk/config/install/inittab 2009-05-31 06:16:12 UTC (rev 2962)
+++ ipcop/trunk/config/install/inittab 2009-05-31 22:08:10 UTC (rev 2963)
@@ -4,6 +4,5 @@
tty5::respawn:/bin/iowrap /dev/tty5 /bin/ash --login
tty6::respawn:/bin/iowrap /dev/tty6 /bin/ash --login
-# Stuff to do before rebooting
+# Stuff to do if rebooting (installer call halt)
::ctrlaltdel:/etc/halt
-::shutdown:/etc/halt
Modified: ipcop/trunk/src/installer/installer.c
===================================================================
--- ipcop/trunk/src/installer/installer.c 2009-05-31 06:16:12 UTC (rev 2962)
+++ ipcop/trunk/src/installer/installer.c 2009-05-31 22:08:10 UTC (rev 2963)
@@ -1044,7 +1044,7 @@
}
newtFinished();
- system("/bin/reboot");
+ system("/etc/halt");
while (1);
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic