summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-09-13 19:21:05 +0200
committerAleksander Morgado <aleksander@lanedo.com>2013-09-13 19:21:05 +0200
commit9bcf031b39bcc47da274001bf36fd62618e2a789 (patch)
treeaecf203367ac294383f02bc8340d52b9fd9f1a84 /utils
parentc702f05f9218f123857eba478ca0c1c905c3b4ff (diff)
qmi-network: use dot instead of 'source' to load the profiles
The qmi-network script doesn't work properly because it uses a bash-specific "source" command. In Ubuntu, /bin/sh is dash. The solution is to just change "source" to a dot, which is the proper way to do a "source" in POSIX sh. Bug report and original fix by Heath Kehoe <heath@digitalartefacts.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/qmi-network.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/qmi-network.in b/utils/qmi-network.in
index 2bef24a..1470f38 100755
--- a/utils/qmi-network.in
+++ b/utils/qmi-network.in
@@ -69,7 +69,7 @@ load_profile ()
{
if [ -f $PROFILE_FILE ]; then
echo "Loading profile..."
- source $PROFILE_FILE
+ . $PROFILE_FILE
if [ "x$APN" != "x" ]; then
echo " APN: $APN"
@@ -103,7 +103,7 @@ load_state ()
{
if [ -f $STATE_FILE ]; then
echo "Loading previous state..."
- source $STATE_FILE
+ . $STATE_FILE
if [ "x$CID" != "x" ]; then
echo " Previous CID: $CID"