summaryrefslogtreecommitdiffstats
path: root/networking/modem
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-22 19:46:33 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-22 19:50:35 +0200
commit7721059d0f2d5bbc68442389c7293674dfd761a2 (patch)
tree8e6b270a906bcfce7d16922acb23795520b9438d /networking/modem
parent5b0bd6725cf17dbcd5363d220f5d9b407e3e5695 (diff)
downloadvendor_replicant-scripts-7721059d0f2d5bbc68442389c7293674dfd761a2.tar.gz
vendor_replicant-scripts-7721059d0f2d5bbc68442389c7293674dfd761a2.tar.bz2
vendor_replicant-scripts-7721059d0f2d5bbc68442389c7293674dfd761a2.zip
modem: fix user interface
The modem user interface is the following, according to the help: Usage: modem.sh [on|off] Examples: modem.sh off |-> disable the modem and reboot modem.sh on |-> enable the modem and reboot However the code is still expecting the "enable" or "disable" arguments. This fix the code to use the new "on" and "off" arguments as expected. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'networking/modem')
-rwxr-xr-xnetworking/modem/device-files/modem.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/modem/device-files/modem.sh b/networking/modem/device-files/modem.sh
index b27aadd..1a68748 100755
--- a/networking/modem/device-files/modem.sh
+++ b/networking/modem/device-files/modem.sh
@@ -81,12 +81,12 @@ modem()
echo "Remounting system partition as writable..."
mount -o rw,remount /system
- if [ "${command}" = "enable" ] ; then
+ if [ "${command}" = "on" ] ; then
echo "Enabling RIL..."
mv /system/lib/libsamsung-ril.so.disabled \
/system/lib/libsamsung-ril.so || \
echo 'RIL was already enabled.'
- elif [ "${command}" = "disable" ] ; then
+ elif [ "${command}" = "off" ] ; then
echo "Disabling RIL..."
mv /system/lib/libsamsung-ril.so \
/system/lib/libsamsung-ril.so.disabled || \