ALT Linux repositórios
S: | 9.4.0-alt2 |
D: | 4.0.0-alt0.1.rc4 |
5.0: | 4.0.13-alt2 |
4.1: | 3.0.17-alt4 |
4.0: | 3.0.17-alt2.M40.1 |
3.0: | 1.3.22pl4-alt3 |
+backports: | 3.0.17-alt3.M30 |
Group :: Sistema/Servidores
RPM: dhcpcd
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: dhcpcd-3.0.17-alt-script.patch
Download
Download
diff -Naur dhcpcd-3.0.17.orig/dhcpcd.sh dhcpcd-3.0.17/dhcpcd.sh
--- dhcpcd-3.0.17.orig/dhcpcd.sh 2007-05-08 14:53:58 +0400
+++ dhcpcd-3.0.17/dhcpcd.sh 2007-05-08 15:50:31 +0400
@@ -13,7 +13,7 @@
# Sanity checks
if [ $# -lt 2 ]; then
- logger -s -p local0.err -t dhcpcd.sh "wrong usage"
+ logger -p local0.err -t dhcpcd.sh "wrong usage"
exit 1
fi
@@ -21,24 +21,29 @@
state="$2"
# Reading HostInfo file for configuration parameters
-. "${hostinfo}"
+[ -n "$hostinfo" ] || exit 0
+if ! . ${hostinfo}; then
+ logger -p local0.err -t dhcpcd.sh "error loading HostInfo file"
+ exit 1
+fi
case "${state}" in
up)
- logger -s -p local0.info -t dhcpcd.sh \
+ logger -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 \
+ logger -p local0.info -t dhcpcd.sh \
"interface ${INTERFACE} has been configured with new IP=${IPADDR}"
+ /sbin/update_chrooted conf
# 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 \
+ down) logger -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
;;