mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-26 20:20:53 +03:00
install_easy: generic linux easy setup
This commit is contained in:
parent
57f2d71782
commit
294140de97
@ -62,7 +62,7 @@ check_system()
|
||||
else
|
||||
echo system is not either systemd, openrc or openwrt based
|
||||
echo check readme.txt for manual setup info.
|
||||
exitp 5
|
||||
SYSTEM=linux
|
||||
fi
|
||||
elif [ "$UNAME" = "Darwin" ]; then
|
||||
SYSTEM=macos
|
||||
@ -163,6 +163,14 @@ remove_openrc()
|
||||
crontab_del
|
||||
}
|
||||
|
||||
remove_linux()
|
||||
{
|
||||
crontab_del
|
||||
|
||||
echo
|
||||
echo '!!! WARNING. YOUR UNINSTALL IS INCOMPLETE !!!'
|
||||
echo 'you must manually remove zapret auto start from your system'
|
||||
}
|
||||
|
||||
|
||||
openwrt_fw_section_find()
|
||||
@ -275,6 +283,9 @@ case $SYSTEM in
|
||||
openrc)
|
||||
remove_openrc
|
||||
;;
|
||||
linux)
|
||||
remove_linux
|
||||
;;
|
||||
openwrt)
|
||||
remove_openwrt
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user