summaryrefslogtreecommitdiffstats
path: root/networking/modem/device-files/disable_modem.sh
Commit message (Collapse)AuthorAgeFilesLines
* modem: rework script user interfaceDenis 'GNUtoo' Carikli2020-06-261-44/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current interface has various issues that are fixed by this new interface. Here's the design decisions that went into the new interface: - On various computer formfactors, like desktops, laptops and servers, people running commands in them typically use a complete hardware keyboard to type them. Tab is typically available for command completion which makes commands like disable_modem.sh way less common than modem_disable.sh. The result is that modem_disable feels more intuitive to people that are already used to type commands. - On Replicant 6.0, on the Galaxy SII which has a small screen, the underscore (_) key is not immediately available on the default keyboard, and to get it, you need to press the "?123" key and press longer on the minus key (-) to finally have 3 choices where the underscore displayed in the middle and selected by default. However the spacebar ( ) is available. - On Replicant 6.0, on the Galaxy SII, with the default keyboard, the Tab key is also not available at all, so it's best if the commands are as short as possible to type, as any mistake requires the user to restart typing it from scratch as there are no arrow keys that could enable them to correct the previous command (assuming they know that arrows can do that, which is typically not the case for many people new to the command line). 'on' and 'off' are way shorter and less error prone than 'enable' and 'disable'. - Using modem.sh is longer than modem, however the dot (.) is available on the default keyboard, including on the Galaxy SII, and to many people that know a bit about the shell, it will not hide the fact that it is a shell script, which can empower them to modify it. - For the usage message the text has been made in a way that can fit the Galaxy SII small screen. It also been made to enable users to just type again 'modem.sh off' without necessarily understanding the shell semantics like # or $. - Finally the commands need to be easy enough to remember or to find as people might be in a hurry and need to enable or disable the modem fast, while being far away from any computer or Internet connection. While 'modem.sh enable' is probably easier to remember, 'modem.sh on' is good enough, while being shorted to type. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* modem: workaround silence not finding the SIM card when it is "launched"Denis 'GNUtoo' Carikli2020-01-171-0/+1
| | | | | | | | | When silence is present in the app switcher, it still doesn't find the SIM card after a reboot. This seems to make it find the SIM card again. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* network: modem: fix bash pathDenis 'GNUtoo' Carikli2019-12-131-1/+1
| | | | | | | On all supported devices, on Replicant 6.0, bash is installed to /system/xbin/bash Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* networking: modem: Ship the scripts on the deviceDenis 'GNUtoo' Carikli2019-11-131-0/+0
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Added scripts for disabling and enabling the modem on devices that use ↵JeremyRand2017-08-281-0/+43
Samsung-RIL. Reviewed-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>