# HG changeset patch # User Giulio Moro # Date 1465433354 -3600 # Node ID e70f023e0f7f3cd6bbfbf3fff3ddfe85d59112d4 # Parent ab6d78e18e85e3dc314a157223d8a67ad3fa4bb5 Updated halt_board.sh diff -r ab6d78e18e85 -r e70f023e0f7f scripts/halt_board.sh --- a/scripts/halt_board.sh Thu Jun 09 01:47:13 2016 +0100 +++ b/scripts/halt_board.sh Thu Jun 09 01:49:14 2016 +0100 @@ -2,7 +2,7 @@ # # This script halts the BeagleBone Black. -BBB_ADDRESS="root@192.168.7.2" +[ -z "$BBB_ADDRESS" ] && BBB_ADDRESS="root@192.168.7.2" echo "Shutting down the BeagleBone Black..." -ssh $BBB_ADDRESS "halt" \ No newline at end of file +ssh $BBB_ADDRESS "halt"