mirror of
https://github.com/bol-van/zapret.git
synced 2025-06-08 03:17:49 +05:00
install_easy: stop if running embedded release on traditional linux
This commit is contained in:
parent
99b5406905
commit
bf4244809f
@ -506,3 +506,4 @@ blockcheck: report test function and domain every test
|
|||||||
v71.1
|
v71.1
|
||||||
|
|
||||||
nfqws,tpws: much faster ipset implementation. move from hash to avl tree
|
nfqws,tpws: much faster ipset implementation. move from hash to avl tree
|
||||||
|
install_easy: stop if running embedded release on traditional linux system (some files missing)
|
||||||
|
@ -50,6 +50,26 @@ check_readonly_system()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_source()
|
||||||
|
{
|
||||||
|
local bad=0
|
||||||
|
echo \* checking source files
|
||||||
|
case $SYSTEM in
|
||||||
|
systemd)
|
||||||
|
[ -f "$EXEDIR/init.d/systemd/zapret.service" ] || bad=1
|
||||||
|
;;
|
||||||
|
openrc)
|
||||||
|
[ -f "$EXEDIR/init.d/openrc/zapret" ] || bad=1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
esac
|
||||||
|
[ "$bad" = 1 ] && {
|
||||||
|
echo 'some critical files are missing'
|
||||||
|
echo 'are you sure you are not using embedded release ? you need full version for traditional linux'
|
||||||
|
exitp 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
check_bins()
|
check_bins()
|
||||||
{
|
{
|
||||||
echo \* checking executables
|
echo \* checking executables
|
||||||
@ -883,6 +903,7 @@ umask 0022
|
|||||||
fix_sbin_path
|
fix_sbin_path
|
||||||
fsleep_setup
|
fsleep_setup
|
||||||
check_system
|
check_system
|
||||||
|
check_source
|
||||||
|
|
||||||
[ "$SYSTEM" = "macos" ] && . "$EXEDIR/init.d/macos/functions"
|
[ "$SYSTEM" = "macos" ] && . "$EXEDIR/init.d/macos/functions"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user