From 1c3a972b77af48730551c4597c3abd862d0eb2fb Mon Sep 17 00:00:00 2001 From: gutosie Date: Mon, 11 May 2020 17:51:54 +0300 Subject: [PATCH] Delete userscript.sh --- NeoBoot/files/userscript.sh | 47 ------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 NeoBoot/files/userscript.sh diff --git a/NeoBoot/files/userscript.sh b/NeoBoot/files/userscript.sh deleted file mode 100644 index 6f5aeda..0000000 --- a/NeoBoot/files/userscript.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# script gutosie -# here you can add your own command to perform -# line - Checking internet connection by @j00zek thank you :) - -if [ ! -e /usr/bin/ipkg ]; then - ln -sfn /usr/bin/opkg /usr/bin/ipkg -fi -if [ ! -e /usr/bin/ipkg-cl ]; then - ln -sfn /usr/bin/opkg-cl /usr/bin/ipkg-cl -fi - -if [ -f /etc/init.d/inadyn-mt ] ; then - /etc/init.d/inadyn-mt start -fi - -if [ ! -e /usr/bin/enigma2_pre_start.sh ] ; then - /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh -fi - -echo "_(Checking internet connection)..." -ping -c 1 github.com 1>/dev/null 2>%1 -if [ $? -gt 0 ]; then - echo -n "_(github server unavailable, update impossible)!!! network restart... " - /etc/init.d/networking stop; sleep 1; /etc/init.d/networking start; - if [ $? -gt 0 ]; then - if [ -e /usr/bin/curl ]; then - cd /tmp; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt; - cd / - elif [ -e /usr/bin/wget ]; then - wget https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt -O /tmp/ver.txt - cd / - - fi - if [ ! -f /tmp/ver.txt ] ; then - /etc/init.d/networking stop; sync; /etc/init.d/networking start; - fi - fi - echo " dns-nameservers 1.1.1.1" >> /etc/network/interfaces -else - echo "_(github server available)!!!" -fi - -echo "file used userscript " -echo ok - -exit 0