X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=backup.sh;h=d40470d63549cc6e73b661d047b0f3ab1702de8d;hb=8ad15035ea446172c8745a3eff41fc5b9a19f972;hp=c6d36c771498e71578594e17434400db8df4d7c8;hpb=dd1d9383fc56c0aa8ab2ac14a5974baab277be49;p=scripts%2Fscripts.git diff --git a/backup.sh b/backup.sh index c6d36c7..d40470d 100755 --- 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 - kernel_num=`ls /usr/src/ | grep 'linux-' | awk -F- '{ print $2 }'` + kernel_num=`ls /usr/src/ | grep '^linux-' | sed 's/linux-//g'` fi @@ -95,7 +95,8 @@ for i in `ls -A /etc/conf`; do done for i in dhcpd.conf fstab hosts host.conf hosts.allow hosts.deny lilo.conf \ - profile sendmail.cf resolv.conf exports; do + profile sendmail.cf resolv.conf exports fb.modes inetd.conf \ + xinetd.conf; do if [ -f /etc/$i ] ; then echo "copying /etc/$i" cp /etc/$i ./etc @@ -175,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 \ - .Xdefaults .signature; do + .Xdefaults .signature .directfbrc; do [ -f /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done