diff options
author | jim-p <jimp@pfsense.org> | 2011-03-09 13:03:13 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-03-09 13:03:13 -0500 |
commit | fa1823516519cfc54c75d66e9a7145640af06177 (patch) | |
tree | 31650564e04f3543956f47a2bd06bb1bdd7fdbaa /etc | |
parent | b043503a017b1482a0e188885cd460a4842dcca9 (diff) | |
download | pfsense-fa1823516519cfc54c75d66e9a7145640af06177.zip pfsense-fa1823516519cfc54c75d66e9a7145640af06177.tar.gz |
Only delete files in /tmp, not directories. Fixes rm errors on shutdown. (Doing rm -rf might cause it to go across filesystem boundaries again, which we're trying to avoid.)
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.shutdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown index b122f3f..f8dd4a2 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 - find -x /tmp/ -exec rm -f {} \; + find -x /tmp/ -type f -exec rm -f {} \; else /etc/rc.backup_rrd.sh /etc/rc.backup_dhcpleases.sh |