diff options
author | Danny Kukawka <danny.kukawka@web.de> | 2008-01-25 17:08:41 +0100 |
---|---|---|
committer | Danny Kukawka <danny.kukawka@web.de> | 2008-01-25 17:08:41 +0100 |
commit | 25c1fe2bb9e9984572eb88a197a68249555ff4b4 (patch) | |
tree | 63d829294ee99dd74536dcbba65374efc1fc45c5 /tools | |
parent | ebd33452ff434252758db2b88def82432373be53 (diff) |
fixed Dell WWAN part to work as e.g. WLAN part
Fixed Dell WWAN killswitch part to work as e.g. WLAN part.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/linux/hal-system-killswitch-get-power-linux | 4 | ||||
-rwxr-xr-x | tools/linux/hal-system-killswitch-set-power-linux | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/linux/hal-system-killswitch-get-power-linux b/tools/linux/hal-system-killswitch-get-power-linux index 191cb567..46a53881 100755 --- a/tools/linux/hal-system-killswitch-get-power-linux +++ b/tools/linux/hal-system-killswitch-get-power-linux @@ -69,9 +69,9 @@ elif [ "$HAL_PROP_KILLSWITCH_TYPE" = "wlan" ]; then exit 1 fi elif [ "$HAL_PROP_KILLSWITCH_TYPE" = "wwan" ]; then - if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/bin/dellWirelessCtl ]; then + if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x $DELL_WCTL ]; then # TODO: write our own binary that links with libsmbios? - /usr/bin/dellWirelessCtl --st_wwan + $DELL_WCTL --st_wwan value=$? if [ "$value" = "0" ]; then exit 1 diff --git a/tools/linux/hal-system-killswitch-set-power-linux b/tools/linux/hal-system-killswitch-set-power-linux index 2a99ddec..049bcea2 100755 --- a/tools/linux/hal-system-killswitch-set-power-linux +++ b/tools/linux/hal-system-killswitch-set-power-linux @@ -77,16 +77,16 @@ elif [ "$HAL_PROP_KILLSWITCH_TYPE" = "wlan" ]; then exit 1 fi elif [ "$HAL_PROP_KILLSWITCH_TYPE" = "wwan" ]; then - if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x /usr/bin/dellWirelessCtl ]; then + if [ "$HAL_PROP_KILLSWITCH_ACCESS_METHOD" = "dell" -a -x $DELL_WCTL ]; then # As a side effect we disable the physical kill switch # TODO: write our own binary that links with libsmbios? if [ "$value" = "true" ]; then - /usr/bin/dellWirelessCtl --sw_wwan 0 --wwan 1 + $DELL_WCTL --sw_wwan 0 --wwan 1 ret=$? else - /usr/bin/dellWirelessCtl --sw_wwan 0 --wwan 0 + $DELL_WCTL --sw_wwan 0 --wwan 0 ret=$? fi if [ "$ret" != "0" ]; then |