|
From: <abe...@us...> - 2012-01-26 11:45:10
|
Revision: 5412
http://astlinux.svn.sourceforge.net/astlinux/?rev=5412&view=rev
Author: abelbeck
Date: 2012-01-26 11:44:59 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
FIRSTRUN, cleanup ASTURW /var/run/utmp file caused by Busybox bug fixed in commit r5411
Revision Links:
--------------
http://astlinux.svn.sourceforge.net/astlinux/?rev=5411&view=rev
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/init.d/FIRSTRUN
Modified: branches/1.0/project/astlinux/target_skeleton/etc/init.d/FIRSTRUN
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/init.d/FIRSTRUN 2012-01-26 10:59:06 UTC (rev 5411)
+++ branches/1.0/project/astlinux/target_skeleton/etc/init.d/FIRSTRUN 2012-01-26 11:44:59 UTC (rev 5412)
@@ -5,6 +5,16 @@
. /etc/rc.conf
+cleanup_asturw_utmp()
+{
+ if rm /oldroot/mnt/asturw/var/run/utmp; then
+ if rmdir /oldroot/mnt/asturw/var/run; then
+ rmdir /oldroot/mnt/asturw/var
+ fi
+ fi
+}
+
+
init () {
local new old=""
@@ -24,9 +34,16 @@
case $new in
astlinux-1.0*)
+ # Upgrade AIF firewall supporting files
if /usr/sbin/upgrade-arno-firewall checkMajor; then # Don't auto-upgrade if a major version change
/usr/sbin/upgrade-arno-firewall upgrade
fi
+
+ # Cleanup ASTURW /var/run/utmp file caused by Busybox bug fixed in commit r5411
+ if [ -f /oldroot/mnt/asturw/var/run/utmp ]; then
+ cleanup_asturw_utmp 2>/dev/null
+ fi
+
case $old in
astlinux-0.7*)
# 0.7 -> 1.0 upgrade scripts
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|