summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-02-23 14:55:33 +0100
committersmos <seth.mos@dds.nl>2011-02-23 14:55:33 +0100
commit219585dac77e6f00f38528b4609eea61ea481882 (patch)
treed7fb3f926aada8735667ea8df60763c4981d84a5
parent62ce987443811b322a4cb11011528ec9c81de582 (diff)
downloadpfsense-219585dac77e6f00f38528b4609eea61ea481882.zip
pfsense-219585dac77e6f00f38528b4609eea61ea481882.tar.gz
Do not cross filesystem boundaries when removing files lest we empty Seth' USB stick
-rwxr-xr-xetc/rc.shutdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index 9d46ad2..a4b2530 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -28,7 +28,7 @@ export PATH
# temporary files on shutdown from /tmp/
PLATFORM=`cat /etc/platform`
if [ "$PLATFORM" = "pfSense" ]; then
- rm -rf /tmp/*
+ find -xdev /tmp/ -exec rm -rf {}
else
/etc/rc.backup_rrd.sh
/etc/rc.backup_dhcpleases.sh
OpenPOWER on IntegriCloud