diff --git a/build-tgr.sh b/build-tgr.sh index 01560a3..b7858cb 100755 --- a/build-tgr.sh +++ b/build-tgr.sh @@ -49,8 +49,8 @@ openssl rsa -in target/keys/signingkey.pem -outform PEM -pubout -out target/keys cp target/keys/signingpub.pem target/overlay/pub.pem echo "[+] Generating sample update package" -mkdir -p home/update -echo "sample update" > home/update/sample.txt +mkdir -p home/upgrade +echo "sample update" > home/upgrade/sample.txt tar -cvf update.tar home openssl dgst -sha256 -sign target/keys/signingkey.pem -out update.tar.sig update.tar cat update.tar > update.tar.cc diff --git a/conf/etc/network/interfaces b/conf/etc/network/interfaces index 193c0a0..81ef206 100644 --- a/conf/etc/network/interfaces +++ b/conf/etc/network/interfaces @@ -2,8 +2,8 @@ auto lo iface lo inet loopback auto eth0 - pre-up sleep 10 iface eth0 inet dhcp + pre-up sleep 20 auto ap0 iface ap0 inet static diff --git a/update/update.sh b/update/update.sh index d7b08b0..1e141bd 100755 --- a/update/update.sh +++ b/update/update.sh @@ -34,9 +34,9 @@ then /bin/echo "[+] Signature is valid!" /bin/echo "[+] Upgrading..." /bin/tar -xvf $file -C / - /bin/rm $file /tmp/sig + /bin/rm /tmp/sig /bin/echo "[+] Done" else /bin/echo "[-] Signature error, exiting..." - /bin/rm $file /tmp/sig + /bin/rm /tmp/sig fi