summaryrefslogtreecommitdiffstats
path: root/etc/rc.stop_packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-11-17 15:46:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-11-17 15:46:40 +0000
commit43511be85ce31dd1bd508f25aa7832b8cf0c81fb (patch)
treebff5b7b2e87f152e74832086e59625652d44e0a5 /etc/rc.stop_packages
parent579946e2b16b49a2c5347bbd2258382f33581f70 (diff)
downloadpfsense-43511be85ce31dd1bd508f25aa7832b8cf0c81fb.zip
pfsense-43511be85ce31dd1bd508f25aa7832b8cf0c81fb.tar.gz
* Move stop package code out to it's own file rc.stop_packages
Diffstat (limited to 'etc/rc.stop_packages')
-rwxr-xr-xetc/rc.stop_packages18
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/rc.stop_packages b/etc/rc.stop_packages
new file mode 100755
index 0000000..4ff9ed9
--- /dev/null
+++ b/etc/rc.stop_packages
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# Set our operating platform
+PLATFORM=`cat /etc/platform`
+
+if [ ! "$PLATFORM" = "cdrom" ]; then
+
+ echo "Syncing packages..."
+ /etc/rc.packages 2>/dev/null
+
+ echo "Executing rc.d items... "
+ for FILE in /usr/local/etc/rc.d/*.sh; do
+ echo -n " Stopping ${FILE}..."
+ sh $FILE stop >>/tmp/bootup_messages 2>&1
+ echo "done."
+ done
+fi
+
OpenPOWER on IntegriCloud