mirror of
https://github.com/bol-van/zapret.git
synced 2025-01-06 08:20:34 +05:00
install_prereq.sh : accept unknown rc system
This commit is contained in:
parent
e5039ccb4d
commit
400671cf2b
@ -72,6 +72,8 @@ openrc_test()
|
|||||||
}
|
}
|
||||||
check_system()
|
check_system()
|
||||||
{
|
{
|
||||||
|
# $1 - nonempty = do not fail on unknown rc system
|
||||||
|
|
||||||
echo \* checking system
|
echo \* checking system
|
||||||
|
|
||||||
SYSTEM=""
|
SYSTEM=""
|
||||||
@ -111,7 +113,7 @@ check_system()
|
|||||||
echo system is not either systemd, openrc or openwrt based
|
echo system is not either systemd, openrc or openwrt based
|
||||||
echo easy installer can set up config settings but can\'t configure auto start
|
echo easy installer can set up config settings but can\'t configure auto start
|
||||||
echo you have to do it manually. check readme.txt for manual setup info.
|
echo you have to do it manually. check readme.txt for manual setup info.
|
||||||
if ask_yes_no N "do you want to continue"; then
|
if [ -n "$1" ] || ask_yes_no N "do you want to continue"; then
|
||||||
SYSTEM=linux
|
SYSTEM=linux
|
||||||
else
|
else
|
||||||
exitp 5
|
exitp 5
|
||||||
|
@ -22,7 +22,7 @@ ZAPRET_BASE="$EXEDIR"
|
|||||||
umask 0022
|
umask 0022
|
||||||
fsleep_setup
|
fsleep_setup
|
||||||
fix_sbin_path
|
fix_sbin_path
|
||||||
check_system
|
check_system accept_unknown_rc
|
||||||
[ $UNAME = "Linux" ] || {
|
[ $UNAME = "Linux" ] || {
|
||||||
echo no prerequisites required for $SYSTEM
|
echo no prerequisites required for $SYSTEM
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user