mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 21:55:13 +08:00
Update 20-smb
This commit is contained in:
1 parent
47b1216a01
commit
ca3783e295
1 file changed
+6
-5
@@ -9,12 +9,13 @@ config_file="/etc/config/samba4"
|
|||||||
wait_for_init() {
|
wait_for_init() {
|
||||||
for i in `seq 30`
|
for i in `seq 30`
|
||||||
do
|
do
|
||||||
[ -e /tmp/procd.done ] || {
|
if ubus call service list '{"name":"samba4"}' 2>/dev/null | grep -q "samba4"; then
|
||||||
sleep 1; continue;
|
sleep 2
|
||||||
}
|
return
|
||||||
return
|
fi
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
}
|
}}
|
||||||
|
|
||||||
smb_handle() {
|
smb_handle() {
|
||||||
local path
|
local path
|
||||||
|
|||||||
Reference in new issue
Block a user