mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
dnsmasq: fix ismounted check
Fix the return value, shell return codes should be 0 to indicate success
(i.e. mount point found), 1 should be failure (i.e. mount point not-found).
Fixes: ac4e8aa
("dnsmasq: fix more dnsmasq jail issues")
Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
This commit is contained in:
parent
50bc06e774
commit
1818157daa
@ -197,12 +197,12 @@ ismounted() {
|
|||||||
for dirname in $EXTRA_MOUNT ; do
|
for dirname in $EXTRA_MOUNT ; do
|
||||||
case "$filename" in
|
case "$filename" in
|
||||||
"${dirname}/"* | "${dirname}" )
|
"${dirname}/"* | "${dirname}" )
|
||||||
return 1
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
return 0
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
append_addnhosts() {
|
append_addnhosts() {
|
||||||
|
Loading…
Reference in New Issue
Block a user