We have moved to a new Sailfish OS Forum. Please start new discussions there.
![]() | 1 | initial version | posted 2017-10-19 01:17:14 +0200 |
As tethering is a needed prerequisite for me to use my JollaX as a daily driver, I've tinkered this tiny script based on this zendeks-article: https://jolla.zendesk.com/hc/en-us/articles/115013777068 Feel free to use it yourself or to improve it! (This is a Wiki-Article)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root (type devel-su first)"
exit 1
fi
if [[ $1 == "off" ]]; then
echo "Best way to turn off hotspot at the moment is restarting your device..."
exit 0
elif [[ $1 == "on" ]]; then
echo "Switch Tethering ON.."
echo 2 > /sys/module/bcmdhd/parameters/op_mode
sleep 1
echo "Now restart WLAN from UI (\"Settings > WLAN\") and enable hotspot (\"Settings > Internet sharing\")"
read -p "Done with the instruction above? Then press [Enter] to continue..."
ip link set dev wlan0 master tether
sleep 1
echo "Enjoy tethering on your Xperia X!;)"
exit 0
else
echo "USAGE: $0 <on><off>"
exit 1
fi
![]() | 2 | No.2 Revision |
As tethering is a needed prerequisite for me to use my JollaX as a daily driver, I've tinkered this tiny script based on this zendeks-article: zendesk-article: https://jolla.zendesk.com/hc/en-us/articles/115013777068 Feel free to use it yourself or to improve it! (This is a Wiki-Article)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root (type devel-su first)"
exit 1
fi
if [[ $1 == "off" ]]; then
echo "Best way to turn off hotspot at the moment is restarting your device..."
exit 0
elif [[ $1 == "on" ]]; then
echo "Switch Tethering ON.."
echo 2 > /sys/module/bcmdhd/parameters/op_mode
sleep 1
echo "Now restart WLAN from UI (\"Settings > WLAN\") and enable hotspot (\"Settings > Internet sharing\")"
read -p "Done with the instruction above? Then press [Enter] to continue..."
ip link set dev wlan0 master tether
sleep 1
echo "Enjoy tethering on your Xperia X!;)"
exit 0
else
echo "USAGE: $0 <on><off>"
exit 1
fi