|
|
@ -1,6 +1,6 @@
|
|
|
|
NDG_VERSION=v0.2.0
|
|
|
|
NDG_VERSION=v0.2.0-1-gff883042-dev
|
|
|
|
NDG_URL_AARCH64=https://git.qcode.ch/attachments/60c970b8-80fc-4b46-8beb-4167629f8b06
|
|
|
|
NDG_URL_AARCH64=https://git.qcode.ch/attachments/b3d30f19-0f24-445f-bc31-376b41332f8b
|
|
|
|
NDG_SHA256_AARCH64=bc0e1c6aad09ad27377e89ddb1f27ee4eb6f3c0e77c7ef588be246a25d7c5e6a
|
|
|
|
NDG_SHA256_AARCH64=a32462e1bd2c1a12cd5c78889c3d6ac2ab92170729be7a9e04786fdf79a2b37c
|
|
|
|
|
|
|
|
|
|
|
|
NDG_HOME=/home/uiuser
|
|
|
|
NDG_HOME=/home/uiuser
|
|
|
|
NDG_BINDIR=$NDG_HOME/$NDG_VERSION
|
|
|
|
NDG_BINDIR=$NDG_HOME/$NDG_VERSION
|
|
|
@ -26,6 +26,18 @@ ndg_svc_install() {
|
|
|
|
local svdir=/etc/sv/nd
|
|
|
|
local svdir=/etc/sv/nd
|
|
|
|
mkdir -p $svdir
|
|
|
|
mkdir -p $svdir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF > $svdir/finish.new
|
|
|
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# workaround https://git.qcode.ch/nakamochi/ndg/issues/17
|
|
|
|
|
|
|
|
pkill -9 ngui
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $svdir/finish.new
|
|
|
|
|
|
|
|
test -f $svdir/finish && diff $svdir/finish $svdir/finish.new
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
|
|
|
|
mv $svdir/finish.new $svdir/finish
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f $svdir/finish.new
|
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF > $svdir/run.new
|
|
|
|
cat <<EOF > $svdir/run.new
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
exec $NDG_BINDIR/nd -gui $NDG_BINDIR/ngui -gui-user uiuser -wpa /var/run/wpa_supplicant/wlan0 2>&1
|
|
|
|
exec $NDG_BINDIR/nd -gui $NDG_BINDIR/ngui -gui-user uiuser -wpa /var/run/wpa_supplicant/wlan0 2>&1
|
|
|
|