~inx-devel/inx/buildinx

« back to all changes in this revision

Viewing changes to buildinx

  • Committer: Peter Garrett
  • Date: 2008-09-20 21:28:09 UTC
  • Revision ID: inx-one@optusnet.com.au-20080920212809-gv0nw8t2jtxrqkcm
Reinstated /rofs check to see if running from live CD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        echo -e "Please run \"sudo "$0" <name> <mirror> \"" 
50
50
        echo -e "Or become root before running "$0"\n"
51
51
        exit 1
 
52
elif ls -d /rofs > /dev/null 2>&1 ; then # See if there's a /rofs - if so, this is probably the live CD
 
53
        echo -e "\nYou appear to be running $0 from the live CD..."
 
54
        echo -e "This would be kind of pointless - try copying the script"
 
55
        echo -e "as root to your hard drive or something first, unless"
 
56
        echo -e "you have some clever ideas about it, or this is wrong :-)\n"
 
57
        echo -e  "Go ahead anyway? (default is n for 'no')\n "
 
58
        read -s -n 1 GOAHEAD
 
59
        if [ "$GOAHEAD" = y -o "$GOAHEAD" = Y ] ; then
 
60
            :
 
61
        else
 
62
            exit
 
63
        fi
52
64
fi
53
65
 
54
66
green ; echo -e "\nBuildinx up and running...\n" ; sleep 1 ; white