changeset 365:e70f023e0f7f prerelease

Updated halt_board.sh
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 09 Jun 2016 01:49:14 +0100
parents ab6d78e18e85
children 2ea5ed159f21
files scripts/halt_board.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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"