aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup-bnep
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-25 20:01:54 +0200
committerDee'Kej <deekej@linuxmail.org>2018-05-30 12:32:22 +0200
commita145ddda284570e57413e37f025c3657205e17d8 (patch)
treea371338da02e38d8745964f75239c8ee62cc459b /network-scripts/ifup-bnep
parentdb1ca2fadd20d0a4fb5a0fe18adcd8c960db9cf3 (diff)
downloadinitscripts-a145ddda284570e57413e37f025c3657205e17d8.tar
initscripts-a145ddda284570e57413e37f025c3657205e17d8.tar.gz
initscripts-a145ddda284570e57413e37f025c3657205e17d8.tar.bz2
initscripts-a145ddda284570e57413e37f025c3657205e17d8.tar.xz
initscripts-a145ddda284570e57413e37f025c3657205e17d8.zip
Repository scheme updated to new layout
NOTE: This commit just moves files around, without actually fixing the Makefiles and specfile. See follow up commits which resolve this.
Diffstat (limited to 'network-scripts/ifup-bnep')
-rwxr-xr-xnetwork-scripts/ifup-bnep55
1 files changed, 55 insertions, 0 deletions
diff --git a/network-scripts/ifup-bnep b/network-scripts/ifup-bnep
new file mode 100755
index 00000000..019e741b
--- /dev/null
+++ b/network-scripts/ifup-bnep
@@ -0,0 +1,55 @@
+#! /bin/bash
+
+. /etc/init.d/functions
+
+cd /etc/sysconfig/network-scripts
+. ./network-functions
+
+[ -f ../network ] && . ../network
+
+CONFIG=${1}
+
+source_config
+
+# On hotplug events, just bring the virtual device up as if it's normal Ethernet
+if [ -n "$IN_HOTPLUG" ]; then
+ exec sh -x /etc/sysconfig/network-scripts/ifup-eth ${CONFIG} $2
+fi
+
+start_panu()
+{
+ PANDARGS="--persist --pidfile=/run/pand-${DEVICE}.pid --ethernet=${DEVICE} --autozap"
+ [ "${CACHE}" != "no" -a "${CACHE}" != "NO" ] && PANDARGS="${PANDARGS} --cache"
+ if [ "${REMOTEBDADDR}" = "" ]; then
+ PANDARGS="${PANDARGS} --search"
+ else
+ PANDARGS="${PANDARGS} --connect ${REMOTEBDADDR}"
+ fi
+ /usr/bin/pand ${PANDARGS}
+}
+
+start_nap()
+{
+ :
+}
+
+start_gn()
+{
+ :
+}
+
+case "$ROLE" in
+PANU)
+ start_panu
+ ;;
+NAP)
+ start_nap
+ ;;
+GN)
+ start_gn
+ ;;
+*)
+ echo Unknown BNEP mode :$ROLE
+ ;;
+esac
+