diff scripts/halt_board.sh @ 365:e70f023e0f7f prerelease

Updated halt_board.sh
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 09 Jun 2016 01:49:14 +0100
parents ad6b2767beaf
children 99de323c13b3
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"