aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-24 16:06:03 +0200
committerDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2018-05-30 14:33:04 +0200
commit9b2dbe00100d4e1077404b9d781f35adad979467 (patch)
treef623f5643b1634032ae774a23b95bd1a074f63cc /network-scripts
parentb4a33f400394b4f89bac723977f6f356252a3386 (diff)
downloadinitscripts-9b2dbe00100d4e1077404b9d781f35adad979467.tar
initscripts-9b2dbe00100d4e1077404b9d781f35adad979467.tar.gz
initscripts-9b2dbe00100d4e1077404b9d781f35adad979467.tar.bz2
initscripts-9b2dbe00100d4e1077404b9d781f35adad979467.tar.xz
initscripts-9b2dbe00100d4e1077404b9d781f35adad979467.zip
netreport functionality dropped
This concept is quite outdated, and not sane to use at all.
Diffstat (limited to 'network-scripts')
-rwxr-xr-xnetwork-scripts/ifdown-post3
-rwxr-xr-xnetwork-scripts/ifup-aliases11
-rwxr-xr-xnetwork-scripts/ifup-post3
-rw-r--r--network-scripts/network-functions18
4 files changed, 0 insertions, 35 deletions
diff --git a/network-scripts/ifdown-post b/network-scripts/ifdown-post
index 9db16ad3..ab6b1b55 100755
--- a/network-scripts/ifdown-post
+++ b/network-scripts/ifdown-post
@@ -62,9 +62,6 @@ if [ "${REALDEVICE}" != "lo" ]; then
> /dev/null 2>&1
fi
-# Notify programs that have requested notification
-do_netreport
-
if [ -x /sbin/ifdown-local ]; then
/sbin/ifdown-local ${DEVICE}
fi
diff --git a/network-scripts/ifup-aliases b/network-scripts/ifup-aliases
index 52d43ea8..8a943c1b 100755
--- a/network-scripts/ifup-aliases
+++ b/network-scripts/ifup-aliases
@@ -230,7 +230,6 @@ function new_interface ()
else
if [ "$rdev_mark" != "remove" ]; then
/sbin/ip addr flush dev $parent_device label $parent_device:${DEVNUM}
- do_netreport=yes
fi
newmark=remove
setup_this=yes
@@ -253,7 +252,6 @@ function new_interface ()
if [ "$mark_remove" != "remove" ]; then
eval " rdev_${rdevip}_mark=remove ";
/sbin/ip addr flush dev $parent_device label $parent_device:$rdevip
- do_netreport=yes
fi
fi
@@ -303,7 +301,6 @@ function new_interface ()
/etc/sysconfig/network-scripts/ifup-routes ${DEVICE} ${NAME}
- do_netreport=yes
ifuplocal_queue="$ifuplocal_queue $DEVICE"
fi
fi
@@ -363,16 +360,8 @@ for DEVNUM in $rdev_LIST ; do
eval " rdev_mark=\$rdev_${DEVNUM}_mark "
if [ -z "$rdev_mark" ]; then
/sbin/ip addr flush dev $parent_device label $parent_device:${DEVNUM}
- do_netreport=yes
fi
done
-#
-# Notify of new device creation
-#
-
-if [ -n "$do_netreport" ]; then
- do_netreport
-fi
if [ -x /sbin/ifup-local ]; then
for DEVICE in $ifuplocal_queue ; do
diff --git a/network-scripts/ifup-post b/network-scripts/ifup-post
index f8a91add..e1c5e391 100755
--- a/network-scripts/ifup-post
+++ b/network-scripts/ifup-post
@@ -141,9 +141,6 @@ if [ "${REALDEVICE}" != "lo" ]; then
> /dev/null 2>&1
fi
-# Notify programs that have requested notification
-do_netreport
-
if [ -x /sbin/ifup-local ]; then
/sbin/ifup-local ${DEVICE}
fi
diff --git a/network-scripts/network-functions b/network-scripts/network-functions
index c2756b19..a2382e33 100644
--- a/network-scripts/network-functions
+++ b/network-scripts/network-functions
@@ -278,24 +278,6 @@ toggle_value ()
echo ''
fi
}
-
-do_netreport ()
-{
- # Notify programs that have requested notification
- (
- cd /run/netreport || exit
- for i in * ; do
- if [ -f $i ]; then
- if [ "$(id -u)" = "0" ]; then
- OWNER=$(stat -c %U $i)
- su -s /bin/bash $OWNER -c "kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1" > /dev/null 2>&1
- else
- kill -SIGIO $i >/dev/null 2>&1 || rm -f $i >/dev/null 2>&1
- fi
- fi
- done
- )
-}
is_nm_running ()
{