mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
iptables: iptables_helper support for ethernet tethering
This commit is contained in:
parent
ebf5f72c61
commit
eacc210e04
@ -18,11 +18,14 @@ check_docker() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_tether() {
|
check_tether() {
|
||||||
if [ -n "`$CONNMANCTL technologies|grep 'Tethering = True'`" ]; then
|
if [ -n "`$CONNMANCTL technologies | grep -e -A5 technology/wifi -e 'Tethering = True'`" ]; then
|
||||||
$CONNMANCTL tether wifi off
|
TECHNOLOGY="wifi"
|
||||||
sleep 1
|
elif [ -n "`$CONNMANCTL technologies | grep -e -A5 technology/ethernet -e 'Tethering = True'`" ]; then
|
||||||
$CONNMANCTL tether wifi on
|
TECHNOLOGY="ethernet"
|
||||||
fi
|
fi
|
||||||
|
$CONNMANCTL tether $TECHNOLOGY off
|
||||||
|
sleep 1
|
||||||
|
$CONNMANCTL tether $TECHNOLOGY on
|
||||||
}
|
}
|
||||||
|
|
||||||
flush() {
|
flush() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user