~inx-devel/inx/scriptsandfunctions

« back to all changes in this revision

Viewing changes to sbin/inxusb

  • Committer: Peter Garrett
  • Date: 2009-08-09 22:21:47 UTC
  • Revision ID: inx-one@optusnet.com.au-20090809222147-towszixlic875emr
Various tweaks to first-screen, install-options, inxtaller, and inxusb.
Some of them might break...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
 
4
3
# Foreground colours
5
4
 
6
5
white ()   { printf "\E[37m" ; }
18
17
bblack ()   { printf "\E[40m" ; }
19
18
bred ()     { printf "\E[41m" ; }
20
19
 
 
20
if ! grep -q casper /proc/cmdline ; then
 
21
    white ; clear
 
22
    echo -e "\n  This doesn't look like a live session.
 
23
  Currently inxusb can only be run from a live INX session, sorry.
 
24
  Exiting...\n"
 
25
    sleep 5
 
26
    unbold
 
27
    exit
 
28
fi
21
29
 
22
30
bblack ; clear ; echo
23
31
 
291
299
bold ; white
292
300
echo -e "\nINX system copied to ${USB}, partition label INX. Your INX USB device should now be bootable!\n"
293
301
unbold
 
302
sleep 4
294
303
exit