projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout scripts utilitaires pour VCS vd et vs
[hvlinux.git]
/
stage1
/
bootscripts
/
cleanfs
diff --git
a/stage1/bootscripts/cleanfs
b/stage1/bootscripts/cleanfs
index
4be2a54
..
153f241
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 /home/named ]; then
+ cd /home/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