[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.20
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
etc
/
sysconfig
/
network-scripts
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 ifcfg-eno1
343 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifcfg-eno1:1
345 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifcfg-eno2
268 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifcfg-lo
254 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown
2,123 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-Team
1,621 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-TeamPort
1,556 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-bnep
646 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-eth
6,419 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-ippp
769 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-ipv6
4,536 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-isdn
769 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-post
2,064 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-routes
870 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-sit
1,458 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifdown-tunnel
1,462 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup
5,463 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-Team
1,755 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-TeamPort
1,876 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-aliases
12,270 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-bnep
906 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-eth
13,776 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-ippp
12,068 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-ipv6
11,891 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-isdn
12,068 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-plip
643 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-plusb
1,057 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-post
5,000 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-routes
2,427 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-sit
3,303 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-tunnel
2,879 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifup-wireless
1,836 B
SET
[ EDIT ]
|
[ DEL ]
📄 init.ipv6-global
5,421 B
SET
[ EDIT ]
|
[ DEL ]
📄 network-functions
20,431 B
SET
[ EDIT ]
|
[ DEL ]
📄 network-functions-ipv6
31,037 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: ifup-post
#!/bin/bash # Source the general functions for is_true() and is_false(): . /etc/init.d/functions cd /etc/sysconfig/network-scripts . ./network-functions [ -f ../network ] && . ../network unset REALDEVICE if [ "$1" = --realdevice ] ; then REALDEVICE=$2 shift 2 fi CONFIG=$1 source_config [ -z "$REALDEVICE" ] && REALDEVICE=$DEVICE if is_false "$ISALIAS"; then /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE} ${CONFIG} fi if ! is_true "$NOROUTESET"; then /etc/sysconfig/network-scripts/ifup-routes ${REALDEVICE} ${DEVNAME} fi if ! is_false "${PEERDNS}" || is_true "${RESOLV_MODS}"; then # Obtain the DNS entries when using PPP if necessary: [ -n "${MS_DNS1}" ] && DNS1="${MS_DNS1}" [ -n "${MS_DNS2}" ] && DNS2="${MS_DNS2}" # Remove duplicate DNS entries and shift them, if necessary: update_DNS_entries # Determine what regexp we should use (for testing below): if [ -n "${DNS3}" ]; then grep_regexp="[^#]?nameserver[[:space:]]+${DNS1}[^#]?nameserver[[:space:]]+${DNS2}[^#]?nameserver[[:space:]]+${DNS3}" elif [ -n "${DNS2}" ]; then grep_regexp="[^#]?nameserver[[:space:]]+${DNS1}[^#]?nameserver[[:space:]]+${DNS2}" elif [ -n "${DNS1}" ]; then grep_regexp="[^#]?nameserver[[:space:]]+${DNS1}" else # No DNS entries used at all ->> match everything. grep_regexp=".*" fi # Test if the search field needs updating, or # if the nameserver entries order should be updated: if [ -n "${DOMAIN}" ] && ! grep -q "^search.*${DOMAIN}.*$" /etc/resolv.conf || ! tr --delete '\n' < /etc/resolv.conf | grep -E -q "${grep_regexp}"; then if tmp_file=$(mktemp); then search_str='' while read line; do case ${line} in # Skip nameserver entries when at least one DNS option was given # (at this stage we know that we have to update all the nameserver # enries anyway -- see below), or copy them if we are changing just # the 'search' field in /etc/resolv.conf: nameserver*) if [[ "${grep_regexp}" != ".*" ]]; then continue else echo "${line}" >> "${tmp_file}" fi ;; domain* | search*) if [ -n "${DOMAIN}" ]; then read search value < <(echo ${line}) search_str+=" ${value}" else echo "${line}" >> "${tmp_file}" fi ;; # Keep the rest of the /etc/resolv.conf as it was: *) echo "${line}" >> "${tmp_file}" ;; esac done < /etc/resolv.conf # Insert the domain into 'search' field: if [ -n "${DOMAIN}" ]; then echo "search ${DOMAIN}${search_str}" >> "${tmp_file}" fi # Add the requested nameserver entries: [ -n "${DNS1}" ] && echo "nameserver ${DNS1}" >> "${tmp_file}" [ -n "${DNS2}" ] && echo "nameserver ${DNS2}" >> "${tmp_file}" [ -n "${DNS3}" ] && echo "nameserver ${DNS3}" >> "${tmp_file}" # Backup resolv.conf only if it doesn't exist already: ! [ -f /etc/resolv.conf.save ] && cp -af /etc/resolv.conf /etc/resolv.conf.save # Maintain permissions, but set umask in case it doesn't exist: umask_old=$(umask) umask 022 # Update the resolv.conf: change_resolv_conf "${tmp_file}" rm -f "${tmp_file}" umask ${umask_old} unset tmp_file search_str umask_old else net_log $"/etc/resolv.conf was not updated: failed to create temporary file" 'err' 'ifup-post' fi fi unset grep_regexp fi # don't set hostname on ppp/slip connections if [ "$2" = "boot" -a \ "${DEVICE}" != lo -a \ "${DEVICETYPE}" != "ppp" -a \ "${DEVICETYPE}" != "slip" ]; then if need_hostname; then IPADDR=$(LANG=C ip -o -4 addr ls dev ${DEVICE} | awk '{ print $4 ; exit }') eval $(/bin/ipcalc --silent --hostname ${IPADDR} ; echo "status=$?") if [ "$status" = "0" ]; then set_hostname $HOSTNAME fi fi fi # Set firewall ZONE for this device (empty ZONE means default): if [ "${REALDEVICE}" != "lo" ]; then dbus-send --print-reply --system --dest=org.fedoraproject.FirewallD1 \ /org/fedoraproject/FirewallD1 \ org.fedoraproject.FirewallD1.zone.changeZoneOfInterface \ string:"${ZONE}" string:"${DEVICE}" \ > /dev/null 2>&1 fi if [ -x /sbin/ifup-local ]; then /sbin/ifup-local ${DEVICE} fi exit 0