|
From: <abe...@us...> - 2011-11-04 17:00:23
|
Revision: 5248
http://astlinux.svn.sourceforge.net/astlinux/?rev=5248&view=rev
Author: abelbeck
Date: 2011-11-04 17:00:17 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
/etc/init.d/local, add support for /mnt/kd/rc.local.stop, if exists and executable will be one of the first scripts to run when the box is restarted or halted.
Useful for stashing away logs, etc.
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/etc/init.d/local
Added Paths:
-----------
branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K01local
Modified: branches/1.0/project/astlinux/target_skeleton/etc/init.d/local
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/init.d/local 2011-11-03 21:34:01 UTC (rev 5247)
+++ branches/1.0/project/astlinux/target_skeleton/etc/init.d/local 2011-11-04 17:00:17 UTC (rev 5248)
@@ -18,7 +18,10 @@
}
stop () {
- :
+
+ if [ -x /mnt/kd/rc.local.stop ]; then
+ /mnt/kd/rc.local.stop
+ fi
}
case $1 in
Added: branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K01local
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K01local (rev 0)
+++ branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K01local 2011-11-04 17:00:17 UTC (rev 5248)
@@ -0,0 +1 @@
+link ../../init.d/local
\ No newline at end of file
Property changes on: branches/1.0/project/astlinux/target_skeleton/etc/runlevels/default/K01local
___________________________________________________________________
Added: svn:special
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|