Mageia Bugzilla – Attachment 11131 Details for
Bug 25000
Under mga7 systemd starts SYSV init scripts that require the network before the network comes up.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
test script for /sbin
file_25000.txt (text/plain), 541 bytes, created by
Robert Munro
on 2019-06-27 01:54:26 CEST
(
hide
)
Description:
test script for /sbin
Filename:
MIME Type:
Creator:
Robert Munro
Created:
2019-06-27 01:54:26 CEST
Size:
541 bytes
patch
obsolete
>#!/bin/sh ># ># test-network-up this tests whether the network is up ># ># Get the name of the interface that is the default network gateway ># >DEFAULT_NETWORK_IFACE=`netstat -nr | awk '$1 == "0.0.0.0" {print $8}'`; ># ># echo -n "${DEFAULT_NETWORK_IFACE}" # uncomment to debug ># echo # ># >if [ -z "${DEFAULT_NETWORK_IFACE}" ] ; then > echo -n "The network is not up." > echo ; >else echo -n "The network is up." > echo ; >fi; ># end test-network-up
#!/bin/sh # # test-network-up this tests whether the network is up # # Get the name of the interface that is the default network gateway # DEFAULT_NETWORK_IFACE=`netstat -nr | awk '$1 == "0.0.0.0" {print $8}'`; # # echo -n "${DEFAULT_NETWORK_IFACE}" # uncomment to debug # echo # # if [ -z "${DEFAULT_NETWORK_IFACE}" ] ; then echo -n "The network is not up." echo ; else echo -n "The network is up." echo ; fi; # end test-network-up
View Attachment As Raw
Actions:
View
Attachments on
bug 25000
:
11130
| 11131