bluetooth init script: fix negated if condition

This commit is contained in:
Calin Crisan 2017-04-25 22:12:28 +03:00
parent da89e861f2
commit 42538f2142

View File

@ -32,7 +32,7 @@ configure() {
hciconfig $hci up
# if DiscoverableTimeout is set to 0, make adapter is discoverable from boot time
if ! grep -E '^DiscoverableTimeout\s*=\s*0$' $run_conf &>/dev/null; then
if grep -E '^DiscoverableTimeout\s*=\s*0$' $run_conf &>/dev/null; then
hciconfig $hci piscan
fi
}