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
998f36b
..
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
@@
-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