Changeset 87 for trunk/debian/postinst
- Timestamp:
- 03/29/07 09:40:41 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debian/postinst
r86 r87 6 6 # $Id$ 7 7 # 8 DAEMON=pxeconfigd 9 PORT=6611 10 11 SHARE_DIR=/usr/share/doc/pxeconfig 12 13 PXE_TEST=`grep $DAEMON /etc/services` 14 15 if [ ! -z "$PXE_TEST" ]; then 16 echo "WARNING: $DAEMON already in /etc/services" 17 else 18 echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services 19 fi 20 8 21 if [ -d /etc/xinetd.d ] 9 22 then 10 cp /usr/share/doc/pxeconfig/examples/pxeconfigd.xinetd /etc/xinetd.d/pxeconfigd 23 if [ ! -r /etc/xinetd.d/$DAEMON ] 24 then 25 cp $SHARE_DIR/examples/pxeconfigd.xinetd /etc/xinetd.d/$DAEMON 26 /etc/init.d/xinetd reload 27 fi 11 28 else 12 /usr/sbin/update-inetd --group OTHER --remove "pxeconfig stream tcp nowait root.sys /usr/sbin/tcpd /usr/sbin/pxeconfigd" 29 /usr/sbin/update-inetd --group OTHER --add "$DAEMON stream tcp nowait root.sys /usr/sbin/tcpd /usr/sbin/$DAEMON" 30 /etc/init.d/inetd reload 13 31 fi
Note: See TracChangeset
for help on using the changeset viewer.