summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobbie Smith <zoqaeski@gmail.com>2013-04-10 03:33:37 +0200
committerRobbie Smith <zoqaeski@gmail.com>2013-04-10 03:33:37 +0200
commit492fe67b4ae418feda69074f3335be14fbcc79ab (patch)
tree1c73e90fa2b380fd7997520de46d4b950eaee27e /src
parent7cd83d3db74606f6a7a881e123b0c3e49f497ed8 (diff)
downloadnetctl-492fe67b4ae418feda69074f3335be14fbcc79ab.tar.gz
netctl-492fe67b4ae418feda69074f3335be14fbcc79ab.tar.xz
Changed connections to use underscores.
Diffstat (limited to 'src')
-rw-r--r--src/lib/connections/mobile_ppp (renamed from src/lib/connections/mobile-ppp)20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/connections/mobile-ppp b/src/lib/connections/mobile_ppp
index 6a11fdd..fe01fe0 100644
--- a/src/lib/connections/mobile-ppp
+++ b/src/lib/connections/mobile_ppp
@@ -10,14 +10,14 @@ _quotestring() {
echo "\"${1/\"/\\\"}\""
}
-mobile-ppp_up() {
+mobile_ppp_up() {
local cfg
local chat
- mkdir -p "$STATE_DIR/mobile-ppp.${Interface}.${Profile}/"
- chmod 700 "$STATE_DIR/mobile-ppp.${Interface}.${Profile}/"
- cfg="$STATE_DIR/mobile-ppp.${Interface}.${Profile}/options"
- chat="$STATE_DIR/mobile-ppp.${Interface}.${Profile}/modem.chat"
+ mkdir -p "$STATE_DIR/mobile_ppp.${Interface}.${Profile}/"
+ chmod 700 "$STATE_DIR/mobile_ppp.${Interface}.${Profile}/"
+ cfg="$STATE_DIR/mobile_ppp.${Interface}.${Profile}/options"
+ chat="$STATE_DIR/mobile_ppp.${Interface}.${Profile}/modem.chat"
: > "${cfg}"
chmod 600 "${cfg}"
@@ -120,17 +120,17 @@ EOF
$PPPD file "${cfg}"
if [[ $? -ne 0 ]]; then
- rmdir "$STATE_DIR/mobile-ppp.${Interface}.${Profile}/"
+ rmdir "$STATE_DIR/mobile_ppp.${Interface}.${Profile}/"
report_error "Couldn't make pppd connection."
return 1
fi
}
-mobile-ppp_down() {
+mobile_ppp_down() {
local cfg
local chat
- cfg="$STATE_DIR/mobile-ppp.${Interface}.${Profile}/options"
- chat="$STATE_DIR/mobile-ppp.${Interface}.${Profile}/modem.chat"
+ cfg="$STATE_DIR/mobile_ppp.${Interface}.${Profile}/options"
+ chat="$STATE_DIR/mobile_ppp.${Interface}.${Profile}/modem.chat"
PIDFILE="/var/run/ppp-${Profile}.pid"
if [[ -e $PIDFILE ]]; then
@@ -140,7 +140,7 @@ mobile-ppp_down() {
rm "${cfg}"
rm "${chat}"
- rmdir "$STATE_DIR/mobile-ppp.${Interface}.${Profile}/"
+ rmdir "$STATE_DIR/mobile_ppp.${Interface}.${Profile}/"
}