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. --- sysconfig/network-scripts/ifdown-routes | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 sysconfig/network-scripts/ifdown-routes (limited to 'sysconfig/network-scripts/ifdown-routes') diff --git a/sysconfig/network-scripts/ifdown-routes b/sysconfig/network-scripts/ifdown-routes deleted file mode 100755 index 1d1549dc..00000000 --- a/sysconfig/network-scripts/ifdown-routes +++ /dev/null @@ -1,33 +0,0 @@ -#! /bin/bash -# -# Drops static routes which go through device $1 - -if [ -z "$1" ]; then - echo $"usage: ifdown-routes []" - exit 1 -fi - -# The routes are actually dropped just by setting the link down, so nothing -# needs to be done - -MATCH='^[[:space:]]*(\#.*)?$' - -# Routing rules -FILES="/etc/sysconfig/network-scripts/rule-$1 /etc/sysconfig/network-scripts/rule6-$1" -if [ -n "$2" -a "$2" != "$1" ]; then - FILES="$FILES /etc/sysconfig/network-scripts/rule-$2 /etc/sysconfig/network-scripts/rule6-$2" -fi - -for file in $FILES; do - if [ -f "$file" ]; then - proto= - if [ "$file" != "${file##*/rule6-}" ]; then - proto="-6" - fi - { cat "$file" ; echo ; } | while read line; do - if [[ ! "$line" =~ $MATCH ]]; then - /sbin/ip $proto rule del $line - fi - done - fi -done -- cgit v1.2.1