aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/init.ipv6-global
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-08-18 00:55:31 +0000
committerBill Nottingham <notting@redhat.com>2003-08-18 00:55:31 +0000
commit04952042dabc1a365fa39f80e8b383a2f0f419be (patch)
tree66ff7a94f2447645905ddae14d489fa91241ed80 /sysconfig/network-scripts/init.ipv6-global
parentb3a2987a6a91cf8fa98d9f9631229345882d69ba (diff)
downloadinitscripts-04952042dabc1a365fa39f80e8b383a2f0f419be.tar
initscripts-04952042dabc1a365fa39f80e8b383a2f0f419be.tar.gz
initscripts-04952042dabc1a365fa39f80e8b383a2f0f419be.tar.bz2
initscripts-04952042dabc1a365fa39f80e8b383a2f0f419be.tar.xz
initscripts-04952042dabc1a365fa39f80e8b383a2f0f419be.zip
more IPv6 tweaks (<pekkas@netcore.fi>)
sort | uniq -> sort -u
Diffstat (limited to 'sysconfig/network-scripts/init.ipv6-global')
-rwxr-xr-xsysconfig/network-scripts/init.ipv6-global6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/init.ipv6-global b/sysconfig/network-scripts/init.ipv6-global
index 18163b81..79ef9949 100755
--- a/sysconfig/network-scripts/init.ipv6-global
+++ b/sysconfig/network-scripts/init.ipv6-global
@@ -68,7 +68,7 @@ case $ACTION in
fi
# Reset IPv6 sysctl switches for "all", "default" and still existing devices
- sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort | uniq | while read interface; do
+ sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort -u | while read interface; do
# Host/Router behaviour for the interface
ipv6_exec_sysctl -w net.ipv6.conf.$interface.forwarding=$ipv6_global_forwarding >/dev/null 2>&1
@@ -137,7 +137,7 @@ case $ACTION in
ipv6_test testonly || exit 0
- sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort | uniq | while read interface; do
+ sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort -u | while read interface; do
# Assume Host behaviour
ipv6_exec_sysctl -w net.ipv6.conf.$interface.forwarding=0 >/dev/null 2>&1
@@ -170,7 +170,7 @@ case $ACTION in
# Show sysctl switches
sysctl -a | grep "^net\.ipv6\.conf\.default\." | awk -F. '{ print $5 }' | awk -F= '{ print $1 }' | sed 's/ //g' | while read switch; do
- sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort | uniq | while read interface; do
+ sysctl -a | grep "^net\.ipv6\.conf\." | awk -F. '{ print $4 }' | sort -u | while read interface; do
sysctl net.ipv6.conf.$interface.$switch
done
echo