X7ROOT File Manager
Current Path:
/etc/alternatives
etc
/
alternatives
/
📁
..
📄
cifs-idmap-plugin
(11.49 KB)
📄
easy_install-3
(246 B)
📄
ifdown
(2.07 KB)
📄
ifup
(5.33 KB)
📄
ld
(1.71 MB)
📄
libnssckbi.so.x86_64
(249.24 KB)
📄
links
(1.55 MB)
📄
links-man
(4.63 KB)
📄
module.1.gz
(15.14 KB)
📄
modulecmd
(384.75 KB)
📄
modulefile.4.gz
(10.05 KB)
📄
modules.csh
(105 B)
📄
modules.sh
(448 B)
📄
ncman
(10.66 KB)
📄
nmap
(436.87 KB)
📄
pip-3
(209 B)
📄
pip3
(209 B)
📄
pydoc-3
(89 B)
📄
pydoc3
(89 B)
📄
python
(157 B)
📄
python3
(11.59 KB)
📄
python3-config
(204 B)
📄
python3-man
(5.1 KB)
📄
pyvenv-3
(446 B)
📄
unversioned-python-man
(603 B)
Editing: ifdown
#!/bin/bash unset WINDOW # defined by screen, conflicts with our usage . /etc/init.d/functions cd /etc/sysconfig/network-scripts . ./network-functions [ -f ../network ] && . ../network CONFIG=$1 [ -z "$CONFIG" ] && { echo $"usage: ifdown <configuration>" >&2 exit 1 } if ! [ -f /etc/sysconfig/disable-deprecation-warnings ] && ! is_true ${DEPRECATION_WARNING_ISSUED}; then net_log $"You are using 'ifdown' script provided by 'network-scripts', which are now deprecated." warning ifdown >&2 net_log $"'network-scripts' will be removed in one of the next major releases of RHEL." warning ifdown >&2 net_log $"It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well." warning ifdown >&2 fi need_config "${CONFIG}" [ -f "$CONFIG" ] || { echo $"usage: ifdown <configuration>" >&2 exit 1 } if [ $UID != 0 ]; then if [ -x /usr/sbin/usernetctl ]; then source_config if /usr/sbin/usernetctl ${CONFIG} report ; then exec /usr/sbin/usernetctl ${CONFIG} down fi fi echo $"Users cannot control this device." >&2 exit 1 fi source_config if [ -n "$IN_HOTPLUG" ] && [ "${HOTPLUG}" = "no" -o "${HOTPLUG}" = "NO" ] then exit 0 fi if [ "$_use_nm" = "true" ]; then if [ -n "$UUID" -a -z "$DEVICE" ]; then DEVICE=$(nmcli -t --fields uuid,device con show --active | awk -F ':' "\$1 == \"$UUID\" { print \$2 }") fi if [ -n "$DEVICE" ] && ! is_nm_device_unmanaged "$DEVICE" ; then if ! LC_ALL=C nmcli -t -f STATE,DEVICE dev status | grep -Eq "^(failed|disconnected|unmanaged|unavailable):$DEVICE$"; then nmcli dev disconnect "$DEVICE" exit $? fi exit 0 fi fi if [ -x /sbin/ifdown-pre-local ]; then /sbin/ifdown-pre-local ${DEVICE} fi OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-${DEVICETYPE}" if [ ! -x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-${TYPE}" fi if [ ! -x ${OTHERSCRIPT} ]; then OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-eth" fi exec ${OTHERSCRIPT} ${CONFIG} $2
Upload File
Create Folder