mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
more compatible sleep
This commit is contained in:
parent
43d034fea1
commit
c80aac02b1
@ -209,7 +209,7 @@ fsleep_setup()
|
|||||||
if [ -z "$errtext" ]; then
|
if [ -z "$errtext" ]; then
|
||||||
FSLEEP=3
|
FSLEEP=3
|
||||||
# newer openwrt has ucode with system function that supports timeout in ms
|
# newer openwrt has ucode with system function that supports timeout in ms
|
||||||
elif ucode -e "system(['sleep','infinity'], 1)"; then
|
elif ucode -e "system(['sleep','1'], 1)"; then
|
||||||
FSLEEP=4
|
FSLEEP=4
|
||||||
else
|
else
|
||||||
FSLEEP=0
|
FSLEEP=0
|
||||||
|
Loading…
Reference in New Issue
Block a user