X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=backup.sh;h=d40470d63549cc6e73b661d047b0f3ab1702de8d;hb=8ad15035ea446172c8745a3eff41fc5b9a19f972;hp=a47b3a19e5ed74f636ba7f85eb7e484e0cfba68f;hpb=6f6432140cf0305ce60c6e80bf0e3d0c6edb0b94;p=scripts%2Fscripts.git diff --git a/backup.sh b/backup.sh index a47b3a1..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,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 \ - 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" @@ -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 \ - .Xdefaults .signature; do + .Xdefaults .signature .directfbrc; do [ -f /home/hackbard/$i ] && \ cp -r /home/hackbard/$i ./home/hackbard done