summaryrefslogtreecommitdiffstats
path: root/src/lib/connections/pppoe
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-03-18 21:59:04 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-03-18 21:59:04 +0100
commit7699be26477ba73ca470658ccec05a55499f7af0 (patch)
treef89f12bae728fa79274bc64180dd491198b919e5 /src/lib/connections/pppoe
parent1d49567af0acaca79fe9047703a0d94ebaf31064 (diff)
downloadnetctl-7699be26477ba73ca470658ccec05a55499f7af0.tar.gz
netctl-7699be26477ba73ca470658ccec05a55499f7af0.tar.xz
Unhardcode paths
Remove distribution-specific paths (and allow overrides).
Diffstat (limited to 'src/lib/connections/pppoe')
-rw-r--r--src/lib/connections/pppoe6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/connections/pppoe b/src/lib/connections/pppoe
index b24b503..2578af7 100644
--- a/src/lib/connections/pppoe
+++ b/src/lib/connections/pppoe
@@ -1,5 +1,7 @@
# Contributed by: Thomas Bächler <thomas@archlinux.org>
+: ${PPPD:=pppd}
+
_quotestring() {
echo "\"${1/\"/\\\"}\""
}
@@ -43,8 +45,8 @@ pppoe_up() {
[[ -n ${PPPoEMAC} ]] && echo "pppoe-mac $(_quotestring "${PPPoEMAC}")" >> "${cfg}"
[[ ${PPPoEIP6} == yes ]] && echo "+ipv6" >> "${cfg}"
- /sbin/ip link set dev "${Interface}" up
- /usr/sbin/pppd file "${cfg}"
+ ip link set dev "${Interface}" up
+ $PPPD file "${cfg}"
if [[ $? -ne 0 ]]; then
rm "${cfg}"