2022-01-14 13:49:56 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-01-14 14:22:57 +00:00
|
|
|
# Stomp on installed stuff to get latest dev versions on to a running machine without too much fuss
|
2022-01-14 13:49:56 +00:00
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
HOST=${1:-pm-qemu}
|
|
|
|
SUDOPASS=${SUDOPASS:-user}
|
|
|
|
|
|
|
|
ssh ${HOST} "
|
|
|
|
cp `which rsync` root-rsync;
|
|
|
|
echo ${SUDOPASS} | sudo -S sh -c 'chown root:root root-rsync; chmod +s root-rsync';
|
|
|
|
"
|
|
|
|
rsync -avu --rsync-path="./root-rsync" \
|
|
|
|
packaging/packages/synit-config/files/. \
|
|
|
|
${HOST}:/
|
2022-01-14 14:22:57 +00:00
|
|
|
rsync -avu --rsync-path="./root-rsync" \
|
|
|
|
protocols/schema-bundle.bin \
|
2022-02-09 14:48:53 +00:00
|
|
|
${HOST}:/usr/share/synit/schemas/schema-bundle.prb
|
|
|
|
rsync -avu --rsync-path="./root-rsync" \
|
2022-01-14 14:22:57 +00:00
|
|
|
protocols/schemas/*.prs \
|
|
|
|
${HOST}:/usr/share/synit/schemas/
|
2022-02-09 14:48:53 +00:00
|
|
|
|
2022-01-14 14:22:57 +00:00
|
|
|
ssh ${HOST} "
|
2022-02-10 12:40:32 +00:00
|
|
|
echo ${SUDOPASS} | sudo -S sh -c 'echo \"! <restart-service <daemon <wifi-daemon \\\"wlan0\\\">>>\" > /run/etc/syndicate/services/throck.pr';
|
2022-01-14 14:22:57 +00:00
|
|
|
"
|
2022-02-10 12:40:32 +00:00
|
|
|
|
|
|
|
# ssh ${HOST} "
|
|
|
|
# echo ${SUDOPASS} | sudo -S sh -c 'echo \"! <restart-service <daemon user-settings-daemon>>\" > /run/etc/syndicate/services/throck.pr';
|
|
|
|
# "
|