Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d use kat, a version of cat that strips comments
details: https://anonhg.NetBSD.org/src/rev/0f2f31dcf496
branches: trunk
changeset: 343949:0f2f31dcf496
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 06 18:50:06 2016 +0000
description:
use kat, a version of cat that strips comments
diffstat:
etc/rc.d/network | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r eba8f8b1bdd6 -r 0f2f31dcf496 etc/rc.d/network
--- a/etc/rc.d/network Sun Mar 06 18:49:42 2016 +0000
+++ b/etc/rc.d/network Sun Mar 06 18:50:06 2016 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.70 2016/01/07 11:51:07 roy Exp $
+# $NetBSD: network,v 1.71 2016/03/06 18:50:06 christos Exp $
#
# PROVIDE: network
@@ -61,7 +61,7 @@
# otherwise use /etc/myname
#
if [ -z "$hostname" ] && [ -f /etc/myname ]; then
- hostname=$(cat /etc/myname)
+ hostname=$(kat /etc/myname)
fi
if [ -n "$hostname" ]; then
echo "Hostname: $hostname"
@@ -85,7 +85,7 @@
# for NIS/YP domain name
#
if [ -z "$domainname" ] && [ -f /etc/defaultdomain ]; then
- domainname=$(cat /etc/defaultdomain)
+ domainname=$(kat /etc/defaultdomain)
fi
if [ -n "$domainname" ]; then
echo "NIS domainname: $domainname"
@@ -403,7 +403,7 @@
# /etc/hosts.
#
if [ -z "$defaultroute" ] && [ -f /etc/mygate ]; then
- defaultroute=$(cat /etc/mygate)
+ defaultroute=$(kat /etc/mygate)
fi
if [ -n "$defaultroute" ]; then
/sbin/route add default $defaultroute
@@ -418,7 +418,7 @@
# address if it is not using an stf* interface.
#
if [ -z "$defaultroute6" ] && [ -f /etc/mygate6 ]; then
- defaultroute6=$(cat /etc/mygate6)
+ defaultroute6=$(kat /etc/mygate6)
fi
if [ -n "$defaultroute6" ]; then
if [ "$ip6mode" = "autohost" ]; then
Home |
Main Index |
Thread Index |
Old Index