projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hv-utilities is now fetched and installed like all other packages
[hvlinux.git]
/
stage1
/
bootscripts
/
cleanfs
diff --git
a/stage1/bootscripts/cleanfs
b/stage1/bootscripts/cleanfs
index
4be2a54
..
48c2fdc
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
@@
-20,6
+20,12
@@
clean_files()
cd /var/run &&
find . ! -type d ! -name utmp ! -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