Репозитории 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-1.3.22pl4-alt-config.patch
Скачать
Скачать
--- dhcpcd-1.3.22-pl4/dhcpcd.exe.orig 2002-04-28 06:32:56 +0400
+++ dhcpcd-1.3.22-pl4/dhcpcd.exe 2005-04-21 17:08:37 +0400
@@ -15,7 +15,7 @@
# Sanity checks
if [ $# -lt 2 ]; then
- logger -s -p local0.err -t dhcpcd.exe "wrong usage"
+ logger -p local0.err -t dhcpcd.exe "wrong usage"
exit 1
fi
@@ -24,17 +24,15 @@
debug="$3"
# Reading HostInfo file for configuration parameters
-. ${hostinfo}
-
-case ${INTERFACE} in
- eth*) ;;
- *) logger -s -p local0.err -t dhcpcd.exe "wrong interface name \"${INTERFACE}\""
+[ -n "$hostinfo" ] || exit 0
+if ! . ${hostinfo}; then
+ logger -p local0.err -t dhcpcd.exe "error loading HostInfo file"
exit 1
- ;;
-esac
+fi
case ${state} in
- up) logger -s -p local0.info -t dhcpcd.exe "interface ${INTERFACE} has been configured with old IP=${IPADDR}"
+ up) logger -p local0.info -t dhcpcd.exe "interface ${INTERFACE} has been configured with old IP=${IPADDR}"
+ /sbin/update_chrooted conf
# ==== Put your code for the case interface has been brought up with old IP address here
@@ -42,7 +40,8 @@
# ==== End
;;
- new) logger -s -p local0.info -t dhcpcd.exe "interface ${INTERFACE} has been configured with new IP=${IPADDR}"
+ new) logger -p local0.info -t dhcpcd.exe "interface ${INTERFACE} has been configured with new IP=${IPADDR}"
+ /sbin/update_chrooted conf
# ==== Put your code for the case interface has been brought up with new IP address here
@@ -50,7 +49,7 @@
# ==== End
;;
- down) logger -s -p local0.info -t dhcpcd.exe "interface ${INTERFACE} has been brought down"
+ down) logger -p local0.info -t dhcpcd.exe "interface ${INTERFACE} has been brought down"
# ==== Put your code for the case interface has been shut down here