Ignore:
Timestamp:
Mar 20, 2011 3:03:46 PM (10 years ago)
Author:
leemasa
Message:

re #524:
Added support for automatic shutdown w/o password, added code to automatically shut down after test suite
Made a file, /bccd_boot_flags that populates with boot flags from the NIC on startup. Now accessing boot flags is as simple as source /bccd_boot_flags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/sam-test_fw/packages/etc/skel/.bash_profile

    r3071 r3072  
    1010#    . ~/.bashrc
    1111#fi
     12
     13if [ -f /bccd_boot_flags ]; then
     14    source /bccd_boot_flags
     15fi
    1216
    1317# set PATH so it includes user's private bin if it exists
     
    5357fi
    5458
    55 if [ -f /testmode -a ! -z "$DISPLAY" ]; then
     59if [ -f /testmode -a -z "$DISPLAY" ]; then
    5660        startx
    5761fi
    5862
    59 if [ `tty` == "/dev/pts/0" -a $HOSTNAME == "node000@bccd.net" ]; then
    60 if [ -f /controlgenerate ]; then
     63if [ `tty` == "/dev/pts/0" -a $HOSTNAME == "node000.bccd.net" ]; then
     64if [ $BUILD_CONTROL == '1' ]; then
    6165echo "initiating automatic control generation
    6266some tests may take a little while"
     
    6569echo "Please email developers@bccd.net
    6670and state that you have run the iso.
    67 Control generation complete.
    68 You may shut down your system."
     71Control generation complete."
    6972else
    7073echo "initiating test suite"
     
    7275echo "test suite completed"
    7376fi
     77echo "Ctrl-C to cancel automatic shutdown"
     78sudo shutdown -h 1
    7479fi
    7580
Note: See TracChangeset for help on using the changeset viewer.