Subversion Repositories livecd

Rev

Rev 23 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23 Rev 29
Line 81... Line 81...
81
           /etc/init.d/functions \
81
           /etc/init.d/functions \
82
           /etc/rc.d/rc.sysinit \
82
           /etc/rc.d/rc.sysinit \
83
           /etc/sysconfig/afs \
83
           /etc/sysconfig/afs \
84
           /etc/motd \
84
           /etc/motd \
85
           /etc/redhat-release \
85
           /etc/redhat-release \
86
           /etc/rc.d/rc.sysinit \
-
 
87
	   /etc/rc.d/rc.local \
86
	   /etc/rc.d/rc.local \
88
           /etc/resolv.conf"
87
           /etc/resolv.conf"
89
 
88
 
90
for file in $ori_files; do
89
for file in $ori_files; do
91
    [ ! -e ${file}.ori ] && cp -a ${file} ${file}.ori 2>/dev/null
90
    [ ! -e ${file}.ori ] && cp -a ${file} ${file}.ori 2>/dev/null
Line 199... Line 198...
199
fi
198
fi
200
 
199
 
201
### delete .rpmori .rpm Files in /etc
200
### delete .rpmori .rpm Files in /etc
202
find /etc -name "*\.rpmorig" -exec rm -f {} \;
201
find /etc -name "*\.rpmorig" -exec rm -f {} \;
203
find /etc -name "*\.rpmnew"  -exec rm -f {} \;
202
find /etc -name "*\.rpmnew"  -exec rm -f {} \;
-
 
203
find /etc -name "*\.rpmsave" -exec rm -f {} \;
204
 
204
 
205
### delete *~ files in /etc
205
### delete *~ files in /etc
206
find /etc | grep "~$" | while read f; do rm -f "$f"; done
206
find /etc | grep "~$" | while read f; do rm -f "$f"; done
207
 
207
 
208
### clean up /root
208
### clean up /root