added .bashrc + fixed compaq hostname
[scripts/scripts.git] / backup.sh
index a1a0f1a..1a1ebc8 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -5,6 +5,7 @@
 backup_date=`date | awk '{ print $3"."$2"."$6 }'`
 host=`hostname`
 
+[ ! -d /mnt/nfs ] && mkdir -p /mnt/nfs
 
 # set the backup directory
 if [ "$host" = "gate" ] ; then
@@ -153,7 +154,7 @@ if [ "$host" = "right-hand" ] ; then
 fi
 
 # hackstation / mobile / hdw / sparc specific data
-if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" = "sparc" -o "$host" = "left-hand" ] ; then
+if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host" = "sparc" -o "$host" = "compaq" ] ; then
 
        # home of hackbard
        mkdir -p ./home/hackbard
@@ -167,7 +168,7 @@ if [ "$host" = "hackstation" -o "$host" = "mobile" -o "$host" = "hdw" -o "$host"
                        cp -r /home/hackbard/projects ./home/hackbard
        fi
        for i in xinitrc_evil xinitrc_wm .xinitrc GNUstep .Xauthority \
-                       .Xdefaults .signature .directfbrc; do
+                       .Xdefaults .signature .directfbrc .bashrc; do
                [ -f /home/hackbard/$i ] && \
                        cp -r /home/hackbard/$i ./home/hackbard
        done