Skip to content

Commit

Permalink
v3.7.0 fix update and uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
DennoN-RUS committed Feb 18, 2023
1 parent 6cba1c5 commit 92f7fff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ $SYSTEM_FOLDER/etc/init.d/S04bird1-ipv4 stop

# Remove packages
# bird
opkg remove bird1-ipv4
$SYSTEM_FOLDER/bin/opkg remove bird1-ipv4
# curl
answer=0; echo "Do you want remove 'curl'? 0 - no 1 - yes (default: no)"; read answer
if [ "$answer" = "1" ]; then opkg remove curl; fi
if [ "$answer" = "1" ]; then $SYSTEM_FOLDER/bin/opkg remove curl; fi
# cron
answer=0; echo "Do you want remove 'cron'? 0 - no 1 - yes (default: no)"; read answer
if [ "$answer" = "1" ]; then opkg remove cron; fi
if [ "$answer" = "1" ]; then $SYSTEM_FOLDER/bin/opkg remove cron; fi
# bind-dig
answer=0; echo "Do you want remove 'bind-dig'? 0 - no 1 - yes (default: no)"; read answer
if [ "$answer" = "1" ]; then opkg remove bind-dig bind-libs; fi
if [ "$answer" = "1" ]; then $SYSTEM_FOLDER/bin/opkg remove bind-dig bind-libs; fi
# iprange
answer=0; echo "Do you want remove 'iprange'? 0 - no 1 - yes (default: no)"; read answer
if [ "$answer" = "1" ]; then opkg remove iprange; fi
if [ "$answer" = "1" ]; then $SYSTEM_FOLDER/bin/opkg remove iprange; fi
# whois
answer=0; echo "Do you want remove 'whois'? 0 - no 1 - yes (default: no)"; read answer
if [ "$answer" = "1" ]; then opkg remove whois; fi
if [ "$answer" = "1" ]; then $SYSTEM_FOLDER/bin/opkg remove whois; fi
# diff and patch
answer=0; echo "Do you want remove 'diffutils' and 'patch'? 0 - no 1 - yes (default: no)"; read answer
if [ "$answer" = "1" ]; then opkg remove diffutils patch; fi
if [ "$answer" = "1" ]; then $SYSTEM_FOLDER/bin/opkg remove diffutils patch; fi

# Remove start folders
rm -r $SCRIPTS
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ABSOLUTE_FILENAME=`readlink -f "$0"` && HOME_FOLDER=`dirname "$ABSOLUTE_FILENAME"`
SYSTEM_FOLDER=`echo $HOME_FOLDER | awk -F/opt '{print $1}'` && SYSTEM_FOLDER=$SYSTEM_FOLDER/opt
cd $HOME_FOLDER
chmod -x *.sh
$SYSTEM_FOLDER/bin/git restore *.sh Install/*
$SYSTEM_FOLDER/bin/git status
$SYSTEM_FOLDER/bin/git pull
chmod +x *.sh
Expand Down

0 comments on commit 92f7fff

Please sign in to comment.