Skip to content

Commit

Permalink
update skybian scripts from test
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Jul 7, 2022
1 parent 99b3792 commit 670c45f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ _debdeps=""
source=("skybian-static.tar.gz"
"skybian-script.tar.gz")
sha256sums=('2a9d4532c4e174f43739995b58411936d1b4ddf94db21ea574e50842fd1ddff5'
'fe26680e848e51d796aa3a21a3b142558f9b765eec9a6964cbeb3fc6e636f997')
'facad3656a434b90e9f2206a79c80bd22745e27071ea168c5503d4f893bf574b')

build() {
for i in ${_pkgarches[@]}; do
Expand Down
5 changes: 3 additions & 2 deletions script/skymanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#expects CHROOTCONFIG=1 skybian-chrootconfig was run
#determines visor or hypervisor mode and enable the correct service
#remove any previous congig
[[ -f /etc/systemd/network/10-eth.network ]] && rm /etc/systemd/network/10-eth.network && systemctl restart systemd-networkd networking NetworkManager && systemctl disable --now srvpk 2> /dev/null
[[ -f /etc/systemd/network/10-eth.network ]] && rm /etc/systemd/network/10-eth.network && systemctl restart systemd-networkd networking NetworkManager && systemctl disable --now srvpk 2> /dev/null && exit

#generate the config for static IP address on the hypervisor
#or query the rpc of the hypervisor at the designated .2 static ip for its public key
Expand Down Expand Up @@ -42,8 +42,9 @@ skywire-autoconfig ${_pubkey}

if [[ -f /opt/skywire/skywire.json ]] ; then
#disable this script's service
#systemctl disable skymanager 2> /dev/null
systemctl disable skymanager 2> /dev/null
#start skywire & enable the service
systemctl enable --now skywire 2> /dev/null
systemctl restart skywire 2> /dev/null
#the service will be disabled by the user upon satisfactory configuratiomn
fi
Binary file modified skybian-script.tar.gz
Binary file not shown.

0 comments on commit 670c45f

Please sign in to comment.