projects
/
scripts
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more save kern num parsing
[scripts/scripts.git]
/
backup.sh
diff --git
a/backup.sh
b/backup.sh
index
a47b3a1
..
d40470d
100755
(executable)
--- a/
backup.sh
+++ b/
backup.sh
@@
-37,7
+37,7
@@
fi
# set kernel version(s) to store their .config
if [ -d /usr/src/linux ] ; then
# set kernel version(s) to store their .config
if [ -d /usr/src/linux ] ; then
- kernel_num=`ls /usr/src/ | grep '
linux-' | awk -F- '{ print $2 }
'`
+ kernel_num=`ls /usr/src/ | grep '
^linux-' | sed 's/linux-//g
'`
fi
fi
@@
-95,7
+95,7
@@
for i in `ls -A /etc/conf`; do
done
for i in dhcpd.conf fstab hosts host.conf hosts.allow hosts.deny lilo.conf \
done
for i in dhcpd.conf fstab hosts host.conf hosts.allow hosts.deny lilo.conf \
- profile sendmail.cf resolv.conf exports inetd.conf \
+ profile sendmail.cf resolv.conf exports
fb.modes
inetd.conf \
xinetd.conf; do
if [ -f /etc/$i ] ; then
echo "copying /etc/$i"
xinetd.conf; do
if [ -f /etc/$i ] ; then
echo "copying /etc/$i"
@@
-176,7
+176,7
@@
if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host"
cp -r /home/hackbard/$i ./home/hackbard
done
for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \
cp -r /home/hackbard/$i ./home/hackbard
done
for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \
- .Xdefaults .signature; do
+ .Xdefaults .signature
.directfbrc
; do
[ -f /home/hackbard/$i ] && \
cp -r /home/hackbard/$i ./home/hackbard
done
[ -f /home/hackbard/$i ] && \
cp -r /home/hackbard/$i ./home/hackbard
done