#!/bin/bash
if [ $# -ne 1 ]; then
    echo $0: usage: update-bootd script-url
    exit 1
else
	url=$1
	cd ~
	wget -O scripts.tar.gz $url
	tar -zxvf scripts.tar.gz bootdaemon/daemon
	cd bootdaemon/daemon
	sudo rm -r build
	chmod u+x build.sh
	./build.sh
fi