projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to libusb-1.0.19
[hvlinux.git]
/
stage1
/
bootscripts
/
cleanfs
diff --git
a/stage1/bootscripts/cleanfs
b/stage1/bootscripts/cleanfs
index
4be2a54
..
1efde79
100755
(executable)
--- a/
stage1/bootscripts/cleanfs
+++ b/
stage1/bootscripts/cleanfs
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
# cleanfs
# Clean file system
# cleanfs
# Clean file system
@@
-12,14
+12,17
@@
clean_files()
{
failed=0
{
failed=0
- cd /tmp &&
- find . -xdev -mindepth 1 ! -name lost+found ! -name trash -delete || failed=1
-
cd /var/lock &&
find . -type f ! -newer /proc -exec rm -f {} \; || failed=1
cd /var/run &&
find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1
cd /var/lock &&
find . -type f ! -newer /proc -exec rm -f {} \; || failed=1
cd /var/run &&
find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1
+
+ if [ -d /srv/named ]; then
+ cd /srv/named/var/run &&
+ find . ! -type d ! -name utmp ! -newer /proc -exec rm -f {} \; || failed=1
+ fi
+
> /var/run/utmp
if grep -q '^utmp:' /etc/group ; then
chmod 664 /var/run/utmp
> /var/run/utmp
if grep -q '^utmp:' /etc/group ; then
chmod 664 /var/run/utmp