|
@@ -148,8 +148,11 @@ case $(uname | tr A-Z a-z) in
|
|
arm*)
|
|
arm*)
|
|
dist=netclient-$CPU_ARCH
|
|
dist=netclient-$CPU_ARCH
|
|
;;
|
|
;;
|
|
- mipsle)
|
|
|
|
|
|
+ mipsle)
|
|
dist=netclient-mipsle
|
|
dist=netclient-mipsle
|
|
|
|
+ ;;
|
|
|
|
+ mips*)
|
|
|
|
+ dist=netclient-$CPU_ARCH
|
|
;;
|
|
;;
|
|
*)
|
|
*)
|
|
fatal "$CPU_ARCH : cpu architecture not supported"
|
|
fatal "$CPU_ARCH : cpu architecture not supported"
|
|
@@ -240,6 +243,8 @@ if [ "${OS}" = "OpenWRT" ] || [ "${OS}" = "TurrisOS" ]; then
|
|
else
|
|
else
|
|
wget $curl_opts -O netclient.service.tmp https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/openwrt-daemon.sh
|
|
wget $curl_opts -O netclient.service.tmp https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/openwrt-daemon.sh
|
|
fi
|
|
fi
|
|
|
|
+ elif [ "${OS}" = "OpenWRT" ] && [ "$CPU_ARCH" = "mips" ]; then
|
|
|
|
+ wget $curl_opts -O netclient.service.tmp https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/openwrt-daemon.sh
|
|
else
|
|
else
|
|
cat << 'END_OF_FILE' > ./netclient.service.tmp
|
|
cat << 'END_OF_FILE' > ./netclient.service.tmp
|
|
#!/bin/sh /etc/rc.common
|
|
#!/bin/sh /etc/rc.common
|
|
@@ -292,5 +297,4 @@ END_OF_FILE
|
|
/etc/init.d/netclient start
|
|
/etc/init.d/netclient start
|
|
else
|
|
else
|
|
rm -f netclient
|
|
rm -f netclient
|
|
-fi
|
|
|
|
-
|
|
|
|
|
|
+fi
|