Adjusting cleanrun.bash with new script naming for router, e.g. clean.sh
authorrtrimana <rtrimana@uci.edu>
Fri, 23 Feb 2018 21:03:52 +0000 (13:03 -0800)
committerrtrimana <rtrimana@uci.edu>
Fri, 23 Feb 2018 21:03:52 +0000 (13:03 -0800)
localconfig/iotruntime/cleanrun.bash

index 92a1d59..f46d6b4 100755 (executable)
@@ -16,7 +16,7 @@ sudo tomoyo-loadpolicy -df < /home/iotuser/iot2/bin/iotruntime/tomoyo/clear.tomo
 echo "Master cleaned!"
 
 # Clean the slave(s) and router
-SLAVE1="192.168.1.101"
+SLAVE1="192.168.1.191"
 ROUTER="192.168.1.1"
 RUNTIME_PATH="/home/iotuser/iot2/bin/iotruntime/"
 echo "Cleaning slave!"
@@ -30,5 +30,5 @@ echo "Slave processes killed!"
 ssh iotuser@$SLAVE1 "sudo tomoyo-loadpolicy -df < $RUNTIME_PATH/tomoyo/clear.tomoyo"
 echo "Slave process jailer cleaned!"
 
-ssh root@$ROUTER "cd /root/setup; ./clean; ./startup.sh"
+ssh root@$ROUTER "cd /root/setup; ./clean.sh; ./startup.sh"
 echo "Router cleaned!"