aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rw-r--r--rc.d/init.d/functions4
-rwxr-xr-xrc.d/init.d/network7
2 files changed, 6 insertions, 5 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index c9c15b71..fdf58bd0 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -241,7 +241,7 @@ daemon() {
nicelevel=0
while [ "$1" != "${1##[-+]}" ]; do
case $1 in
- '') gprintf "%s: Usage: daemon [+/-nicelevel] {program}\n" $0
+ '') echo $"$0: Usage: daemon [+/-nicelevel] {program}" "[arg1]..."
return 1;;
--check)
base=$2
@@ -277,7 +277,7 @@ daemon() {
nice="nice -n $1"
shift
;;
- *) gprintf "%s: Usage: daemon [+/-nicelevel] {program}\n" $0
+ *) echo $"$0: Usage: daemon [+/-nicelevel] {program}" "[arg1]..."
return 1;;
esac
done
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 2f35f494..4e0cd8b4 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -68,10 +68,11 @@ case "$1" in
apply_sysctl
- if [ -r /etc/ethers -a -x /sbin/arp ]; then
- action "Storing ARP mapping" /sbin/arp -f /etc/ethers
+ #tell NM to reload its configuration
+ if [ "$(LANG=C nmcli -t --fields running general status 2>/dev/null)" = "running" ]; then
+ nmcli connection reload
fi
-
+
# bring up loopback interface
action "Bringing up loopback interface: " ./ifup ifcfg-lo