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
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/
ssh root@flocklab-observer$NODEID "/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 "/etc/init.d/synclog.sh start"
scp glossy-test.hex-$NODEID root@flocklab-observer$NODEID.flocklab-dyn.ethz.ch:/tmp/
ssh root@flocklab-observer$NODEID.flocklab-dyn.ethz.ch "/etc/init.d/synclog.sh stop"
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.flocklab-dyn.ethz.ch "/etc/init.d/synclog.sh start"
......@@ -32,7 +32,7 @@ then
fi
# Constants on remote Gumstix:
DBPATH="/home/root/mmc/flocklab/db";
DBPATH="/home/root/mmc/flocklab/db";
TEMPLATEPATH="/home/root/mmc/flocklab/templates";
MOTERUNNERPATH="/home/root/mmc/flocklab/moterunner";
USERSPACEMODULEPATH="/usr/bin";
......@@ -68,7 +68,7 @@ fi
# If DNS name of Gumstix was not passed as parameter, ask for it:
GUMSTIX=$1;
if [ -z $GUMSTIX ]; then
if [ -z $GUMSTIX ]; then
echo "Enter full DNS name of Gumstix which you want to set up: ";
read GUMSTIX;
fi
......@@ -95,19 +95,19 @@ expect {
}
"gumstix-ethz-verdex login: "
}
send "root\n"
send "root\n"
expect "root@gumstix-ethz-verdex:~# "
send "rm /etc/network/interfaces\n"
send "rm /etc/network/interfaces\n"
expect "root@gumstix-ethz-verdex:~# "
foreach line \$ifconfig {
send "echo '\$line' >> /etc/network/interfaces\n"
expect "root@gumstix-ethz-verdex:~# "
}
send "passwd\n"
send "passwd\n"
expect "Enter new password: "
send "perma.PW\n"
send "PASSWORD\n"
expect "Re-enter new password: "
send "perma.PW\n"
send "PASSWORD\n"
expect "root@gumstix-ethz-verdex:~# "
send "chmod 0700 ~/.ssh\n"
expect "root@gumstix-ethz-verdex:~# "
......@@ -356,7 +356,7 @@ if [ ! "$2" = "-sdsetuponly" ]; then
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/daq_pps.py root@$GUMSTIX:/etc/snmp/scripts/.
echo "Upload ssh authorized_keys file..."
scp network/authorized_keys root@$GUMSTIX:/home/root/.ssh/
ssh root@$GUMSTIX "sed -i 's/^[#]*UseDNS.*/UseDNS no/' /etc/ssh/sshd_config"
......@@ -550,7 +550,7 @@ fi
# scp ../testing/observer/FlockBoard_rev1.1_testing/Testboard/flockboard_testslots.py root@$GUMSTIX:.;
# echo "Running testscript for target slots...";
# 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. !!!!";
# else
# 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