From a145ddda284570e57413e37f025c3657205e17d8 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Fri, 25 May 2018 20:01:54 +0200 Subject: 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. --- network-scripts/ifup-bnep | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 network-scripts/ifup-bnep (limited to 'network-scripts/ifup-bnep') 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 + -- cgit v1.2.1