X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=backup.sh;h=d40470d63549cc6e73b661d047b0f3ab1702de8d;hb=8ad15035ea446172c8745a3eff41fc5b9a19f972;hp=998f36b7f71819c47079a156c951507c5d19790d;hpb=fbb6a7c04c84b80a894dad678dd9157d47ac3620;p=scripts%2Fscripts.git diff --git a/backup.sh b/backup.sh index 998f36b..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 @@ -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