Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37760212
en ru br
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-1.3.22pl4-alt-config.patch
Download


--- 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
 
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009