Changeset 44
- Timestamp:
- 09/03/04 12:08:36 (20 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/Changelog
r42 r44 1 0.4.4 2 - Added support for xinetd in the debian package scripts 3 1 4 0.4.3 2 5 - Added make_deb_pkg.sh utility to make an DEBIAN package -
trunk/pxeconfig/DEBIAN/postinst
r40 r44 4 4 PORT=6611 5 5 6 update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"7 8 9 6 PXE_TEST=`grep $DAEMON /etc/services` 10 7 11 if [ "$PXE_TEST" ]; then8 if [ ! -z "$PXE_TEST" ]; then 12 9 echo "WARNING: $DAEMON already in /etc/services" 13 10 else 14 11 echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services 15 /etc/init.d/inetd reload16 12 fi 17 13 14 if [ -d /etc/xinetd.d ] && [ ! -r /etc/xinetd.d/pxe ] 15 then 16 cat <<EOF >/etc/xinetd.d/pxe 17 service beo_pxeconfigd 18 { 19 disable = no 20 socket_type = stream 21 protocol = tcp 22 user = root 23 group = sys 24 wait = no 25 server = /usr/sbin/beo_pxeconfigd 26 } 27 EOF 18 28 29 echo -e "service $DAEMON\n{\n\tdisable\t\t= no\n\tsocket_type\t= stream\n\tprotocol\t= tcp\n\tuser\t\t= root\n\tgroup\t\t= sys\n\twait\t\t= no\n\tserver\t\t= /usr/sbin/beo_pxeconfigd\n}" > /etc/xinetd.d/pxe 30 /etc/init.d/xinetd reload 31 fi 32 33 if [ -r /etc/inetd.conf ] 34 then 35 update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON" 36 /etc/init.d/inetd reload 37 fi -
trunk/pxeconfig/DEBIAN/postrm
r40 r44 6 6 then 7 7 update-inetd --remove "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON" 8 rm /etc/xinetd.d/pxe 8 9 /etc/init.d/inetd reload 10 /etc/init.d/xinetd reload 9 11 10 12 PXE_TEST=`grep $DAEMON /etc/services` 11 13 12 if [ "$PXE_TEST" ]; then14 if [ ! -z "$PXE_TEST" ]; then 13 15 grep -v "$DAEMON" /etc/services > /tmp/services.tmp 14 16 mv /tmp/services.tmp /etc/services
Note: See TracChangeset
for help on using the changeset viewer.