Репозитории ALT
S: | 9.4.0-alt2 |
D: | 4.0.0-alt0.1.rc4 |
5.1: | 4.0.15-alt4.M51.1 |
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 |
Группа :: Система/Серверы
Пакет: dhcpcd
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: dhcpcd-3.0.17-alt-script.patch
Скачать
Скачать
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
;;