[commit] BSDanywhere - r324 - branches/stephan/home/live

2 views
Skip to first unread message

bsdan...@startek.ch

unread,
Nov 4, 2009, 1:36:36 PM11/4/09
to bsdanywhe...@googlegroups.com
Author: stephan
Date: Wed Nov 4 19:36:35 2009
New Revision: 324

Log:
Tweak wording.
Don't run liverestore/X for tmux sessions.

Modified:
branches/stephan/home/live/.profile

Modified: branches/stephan/home/live/.profile
==============================================================================
--- branches/stephan/home/live/.profile Wed Nov 4 14:17:51 2009 (r323)
+++ branches/stephan/home/live/.profile Wed Nov 4 19:36:35 2009 (r324)
@@ -22,13 +22,13 @@
usbdevs -d | grep umass >/dev/null
if [ $? -eq 0 ]
then
- echo -n "Do you want to restore data from an usbdrive (y/N)? "
+ echo -n "Restore data from a USB drive (y/N)? "
read restore
if [ ! -z $restore ]
then
if [ "$restore" = "y" ] || [ "$restore" = "yes" ] || [ "$restore" = "Y" ] || [ "$restore" = "YES" ] || [ "$restore" = "Yes" ]
then
- echo -n "Which device is your USB drive (without '/dev/', e.g. 'sd0')? "
+ echo -n "Which is your USB drive (e.g. 'sd0')? "
read usb
flag=0
disklabel "${usb}" 2>/dev/null | grep MSDOS | grep i: >/dev/null
@@ -48,7 +48,7 @@
sub_dorestore
sudo umount /mnt
else
- echo "Can't find correct partition on device: nothing restored!"
+ echo "Can't find valid partition on device: no data restored!"
fi
fi
fi
@@ -56,8 +56,5 @@
fi
}

-liverestore
-
-# startx only for local logins
-[ "$SSH_CLIENT" ] || startx
-
+# don't run restore or X for tmux and ssh sessions
+([ "$TMUX" ] || [ "$SSH_CLIENT" ]) || (liverestore; startx)

Reply all
Reply to author
Forward
0 new messages