Changeset 2627 in /cluster/svnroot


Ignore:
Timestamp:
Sep 13, 2010 11:53:12 AM (10 years ago)
Author:
leemasa
Message:

Attempting selective disabling of bccd-passwd (#534)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/leemasa-devel/packages/etc/init.d/bccd-mode

    r2620 r2627  
    1111# hardware). Selects a "mode" based on the address.
    1212### END INIT INFO
    13 MACADDR=ifconfig | awk '/eth0/ {print $5}' | head -1
    14 if [[ $MACADDR =~ "^02:" ]]
     13MACADDR=`ifconfig | awk '/eth0/ {print $5}' | head -1`
     14if [[ $MACADDR =~ ^02: ]]
    1515        then
    16         export BCCD_MODE=test
     16        echo 'export BCCD_MODE=test' >> .bashrc;
     17       
    1718else
    18         export BCCD_MODE=standard
     19        echo 'export BCCD_MODE=standard' >> .bashrc;
    1920fi
     21
     22/usr/sbin/update-rc.d -f /etc/init.d/bccd-passwd remove
Note: See TracChangeset for help on using the changeset viewer.