path: wdm_1.28-27.1/debian/changelog * Stole Branden's xdm.options.5 and renamed it to wdm.options.5 * debian/wdm.options: modified to reflect actual path (/etc/X11/wdm) * debian/preinst: modified to used pidof instead of start-stop-daemon (I don't trust wdm to respond to signals properly -- I'll talk with the author about this) path: wdm_1.28-27.1/debian/prerm if start-stop-daemon --stop --quiet --signal 0 --exec /usr/bin/wdm; then # any children? PARENTS=$(pidof /usr/bin/wdm || true) CHILDREN= for PROCESS in $PARENTS; do path: wdm_1.28-27.1/debian/prerm if ! [ $PROCESS -eq $PROCESS ] 2> /dev/null; then # freak out errormsg "ERROR: pidof returned non-numeric value!" fi # we could use grep -q here if ps would ignore SIGPIPE :-P