To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit ae7543d7 authored by Roman Trüb's avatar Roman Trüb

minor changes

parent c5421fba
...@@ -15,7 +15,7 @@ NODEID=$1 ...@@ -15,7 +15,7 @@ NODEID=$1
tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target ihex glossy-test.exe glossy-test.hex-$NODEID TOS_NODE_ID=$NODEID tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target ihex glossy-test.exe glossy-test.hex-$NODEID TOS_NODE_ID=$NODEID
scp glossy-test.hex-$NODEID root@flocklab-observer$NODEID:/tmp/ scp glossy-test.hex-$NODEID root@flocklab-observer$NODEID.flocklab-dyn.ethz.ch:/tmp/
ssh root@flocklab-observer$NODEID "/etc/init.d/synclog.sh stop" ssh root@flocklab-observer$NODEID.flocklab-dyn.ethz.ch "/etc/init.d/synclog.sh stop"
ssh root@flocklab-observer$NODEID "export PYTHONPATH=/media/card/opkg/usr/lib/python2.6/; /usr/bin/python -m msp430.bsl5.uart -p /dev/flocklab/usb/daq2 -i ihex -s 115200 -e -S -V -P /tmp/glossy-test.hex-$NODEID"; ssh root@flocklab-observer$NODEID.flocklab-dyn.ethz.ch "export PYTHONPATH=/media/card/opkg/usr/lib/python2.6/; /usr/bin/python -m msp430.bsl5.uart -p /dev/flocklab/usb/daq2 -i ihex -s 115200 -e -S -V -P /tmp/glossy-test.hex-$NODEID";
ssh root@flocklab-observer$NODEID "/etc/init.d/synclog.sh start" ssh root@flocklab-observer$NODEID.flocklab-dyn.ethz.ch "/etc/init.d/synclog.sh start"
...@@ -32,7 +32,7 @@ then ...@@ -32,7 +32,7 @@ then
fi fi
# Constants on remote Gumstix: # Constants on remote Gumstix:
DBPATH="/home/root/mmc/flocklab/db"; DBPATH="/home/root/mmc/flocklab/db";
TEMPLATEPATH="/home/root/mmc/flocklab/templates"; TEMPLATEPATH="/home/root/mmc/flocklab/templates";
MOTERUNNERPATH="/home/root/mmc/flocklab/moterunner"; MOTERUNNERPATH="/home/root/mmc/flocklab/moterunner";
USERSPACEMODULEPATH="/usr/bin"; USERSPACEMODULEPATH="/usr/bin";
...@@ -68,7 +68,7 @@ fi ...@@ -68,7 +68,7 @@ fi
# If DNS name of Gumstix was not passed as parameter, ask for it: # If DNS name of Gumstix was not passed as parameter, ask for it:
GUMSTIX=$1; GUMSTIX=$1;
if [ -z $GUMSTIX ]; then if [ -z $GUMSTIX ]; then
echo "Enter full DNS name of Gumstix which you want to set up: "; echo "Enter full DNS name of Gumstix which you want to set up: ";
read GUMSTIX; read GUMSTIX;
fi fi
...@@ -95,19 +95,19 @@ expect { ...@@ -95,19 +95,19 @@ expect {
} }
"gumstix-ethz-verdex login: " "gumstix-ethz-verdex login: "
} }
send "root\n" send "root\n"
expect "root@gumstix-ethz-verdex:~# " expect "root@gumstix-ethz-verdex:~# "
send "rm /etc/network/interfaces\n" send "rm /etc/network/interfaces\n"
expect "root@gumstix-ethz-verdex:~# " expect "root@gumstix-ethz-verdex:~# "
foreach line \$ifconfig { foreach line \$ifconfig {
send "echo '\$line' >> /etc/network/interfaces\n" send "echo '\$line' >> /etc/network/interfaces\n"
expect "root@gumstix-ethz-verdex:~# " expect "root@gumstix-ethz-verdex:~# "
} }
send "passwd\n" send "passwd\n"
expect "Enter new password: " expect "Enter new password: "
send "perma.PW\n" send "PASSWORD\n"
expect "Re-enter new password: " expect "Re-enter new password: "
send "perma.PW\n" send "PASSWORD\n"
expect "root@gumstix-ethz-verdex:~# " expect "root@gumstix-ethz-verdex:~# "
send "chmod 0700 ~/.ssh\n" send "chmod 0700 ~/.ssh\n"
expect "root@gumstix-ethz-verdex:~# " expect "root@gumstix-ethz-verdex:~# "
...@@ -356,7 +356,7 @@ if [ ! "$2" = "-sdsetuponly" ]; then ...@@ -356,7 +356,7 @@ if [ ! "$2" = "-sdsetuponly" ]; then
scp snmp/scripts/chrony-stats.sh root@$GUMSTIX:/etc/snmp/scripts/. scp snmp/scripts/chrony-stats.sh root@$GUMSTIX:/etc/snmp/scripts/.
scp snmp/scripts/flocklab_glossysync.sh root@$GUMSTIX:/etc/snmp/scripts/. scp snmp/scripts/flocklab_glossysync.sh root@$GUMSTIX:/etc/snmp/scripts/.
scp snmp/scripts/daq_pps.py root@$GUMSTIX:/etc/snmp/scripts/. scp snmp/scripts/daq_pps.py root@$GUMSTIX:/etc/snmp/scripts/.
echo "Upload ssh authorized_keys file..." echo "Upload ssh authorized_keys file..."
scp network/authorized_keys root@$GUMSTIX:/home/root/.ssh/ scp network/authorized_keys root@$GUMSTIX:/home/root/.ssh/
ssh root@$GUMSTIX "sed -i 's/^[#]*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config" ssh root@$GUMSTIX "sed -i 's/^[#]*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config"
...@@ -550,7 +550,7 @@ fi ...@@ -550,7 +550,7 @@ fi
# scp ../testing/observer/FlockBoard_rev1.1_testing/Testboard/flockboard_testslots.py root@$GUMSTIX:.; # scp ../testing/observer/FlockBoard_rev1.1_testing/Testboard/flockboard_testslots.py root@$GUMSTIX:.;
# echo "Running testscript for target slots..."; # echo "Running testscript for target slots...";
# ssh root@$GUMSTIX "./flockboard_testslots.py"; # ssh root@$GUMSTIX "./flockboard_testslots.py";
# if [ $? -ne 0 ]; then # if [ $? -ne 0 ]; then
# echo "!!!! Errors occurred when testing the target slots. Correct them and manually run flockboard_testslots.py from the oberserver again. When finished, delete the script from the observer. !!!!"; # echo "!!!! Errors occurred when testing the target slots. Correct them and manually run flockboard_testslots.py from the oberserver again. When finished, delete the script from the observer. !!!!";
# else # else
# echo "No errors occurred when testing the target slots. Thus deleting testscript..."; # echo "No errors occurred when testing the target slots. Thus deleting testscript...";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment