- Remove chkconfig usage for ypbind in dhclient-script (#351211)
- Combine dhcp-static and dhcp-devel packages since there are no shared libraries offered - Remove Requires: openldap-devel on dhcp-devel and libdhcp4client-devel - Make libdhcp4client-devel require dhcp-devel (for libdhcp_control.h) - Do not make dhcp-devel require the dhcp package, those are independent
This commit is contained in:
parent
6599f82f02
commit
5c694ad760
@ -429,6 +429,7 @@ fi
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Oct 25 2007 David Cantrell <dcantrell@redhat.com> - 12:3.1.0-5
|
* Thu Oct 25 2007 David Cantrell <dcantrell@redhat.com> - 12:3.1.0-5
|
||||||
|
- Remove chkconfig usage for ypbind in dhclient-script (#351211)
|
||||||
- Combine dhcp-static and dhcp-devel packages since there are no shared
|
- Combine dhcp-static and dhcp-devel packages since there are no shared
|
||||||
libraries offered
|
libraries offered
|
||||||
- Remove Requires: openldap-devel on dhcp-devel and libdhcp4client-devel
|
- Remove Requires: openldap-devel on dhcp-devel and libdhcp4client-devel
|
||||||
|
26
linux
26
linux
@ -351,14 +351,7 @@ function dhconfig() {
|
|||||||
let contents=contents+1
|
let contents=contents+1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
level=$(/sbin/runlevel)
|
if [ $contents -gt 0 ] && [ -r /var/run/ypbind.pid ] && yppid=$(cat /var/run/ypbind.pid) && [ -d /proc/${yppid} ] && [ "$(if [ -x /usr/bin/readlink ]; then readlink /proc/${yppid}/exe; else echo /sbin/ypbind; fi)" = "/sbin/ypbind" ]; then
|
||||||
level=${level##*\ }
|
|
||||||
|
|
||||||
if [ "$level" = "unknown" ]; then
|
|
||||||
level=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $contents -gt 0 ] && [[ "$level" = [0-6] ]] && /sbin/chkconfig --level=$level ypbind >/dev/null 2>&1 && [ -r /var/run/ypbind.pid ] && yppid=$(cat /var/run/ypbind.pid) && [ -d /proc/${yppid} ] && [ "$(if [ -x /sbin/busybox ]; then /sbin/busybox readlink /proc/${yppid}/exe; else echo /sbin/ypbind; fi)" = "/sbin/ypbind" ]; then
|
|
||||||
kill -HUP $yppid
|
kill -HUP $yppid
|
||||||
fi
|
fi
|
||||||
elif [ -n "$new_nis_servers" ]; then
|
elif [ -n "$new_nis_servers" ]; then
|
||||||
@ -371,14 +364,7 @@ function dhconfig() {
|
|||||||
let contents=contents+1
|
let contents=contents+1
|
||||||
done
|
done
|
||||||
|
|
||||||
level=$(/sbin/runlevel)
|
if [ $contents -gt 0 ] && [ -r /var/run/ypbind.pid ] && yppid=$(cat /var/run/ypbind.pid) && [ -d /proc/${yppid} ] && [ "$(if [ -x /usr/bin/readlink ]; then readlink /proc/${yppid}/exe; else echo /sbin/ypbind; fi)" = "/sbin/ypbind" ]; then
|
||||||
level=${level##*\ }
|
|
||||||
|
|
||||||
if [ "$level" = "unknown" ]; then
|
|
||||||
level=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $contents -gt 0 ] && [[ "$level" = [0-6] ]] && /sbin/chkconfig --level=$level ypbind >/dev/null 2>&1 && [ -r /var/run/ypbind.pid ] && yppid=$(cat /var/run/ypbind.pid) && [ -d /proc/${yppid} ] && [ "$(if [ -x /sbin/busybox ]; then /sbin/busybox readlink /proc/${yppid}/exe; else echo /sbin/ypbind; fi)" = "/sbin/ypbind" ] ; then
|
|
||||||
kill -HUP $yppid
|
kill -HUP $yppid
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -516,14 +502,8 @@ if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ] || [ x$reason = xRELEASE ] \
|
|||||||
if [ -f /etc/yp.conf.predhclient ]; then
|
if [ -f /etc/yp.conf.predhclient ]; then
|
||||||
/bin/rm -f /etc/yp.conf
|
/bin/rm -f /etc/yp.conf
|
||||||
/bin/mv -f /etc/yp.conf.predhclient /etc/yp.conf
|
/bin/mv -f /etc/yp.conf.predhclient /etc/yp.conf
|
||||||
level=$(/sbin/runlevel)
|
|
||||||
level=${level##*\ }
|
|
||||||
|
|
||||||
if [ "$level" = "unknown" ]; then
|
if [ -r /var/run/ypbind.pid ] && yppid=$(cat /var/run/ypbind.pid) && [ -d /proc/${yppid} ] && [ "$(if [ -x /usr/bin/readlink ]; then readlink /proc/${yppid}/exe; else echo /sbin/ypbind; fi)" = "/sbin/ypbind" ]; then
|
||||||
level=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$level" = [0-6] ]] && /sbin/chkconfig --level=$level ypbind >/dev/null 2>&1 && [ -r /var/run/ypbind.pid ] && yppid=$(cat /var/run/ypbind.pid) && [ -d /proc/${yppid} ] && [ "$(if [ -x /sbin/busybox ]; then /sbin/busybox readlink /proc/${yppid}/exe; else echo /sbin/ypbind; fi)" = "/sbin/ypbind" ] ; then
|
|
||||||
kill -HUP $yppid
|
kill -HUP $yppid
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user