| 1 |
#!/sbin/sh |
| 2 |
# |
| 3 |
# Simple HP-UX init.d script to remove the sudo timestamp directory on boot. |
| 4 |
# This is needed because HP-UX does not clear /var/run on its own. |
| 5 |
# Install as /sbin/init.d/sudo with a link /sbin/rc2.d/S900sudo |
| 6 |
# |
| 7 |
|
| 8 |
PATH=/usr/sbin:/usr/bin:/sbin |
| 9 |
export PATH |
| 10 |
|
| 11 |
TSDIR="@rundir@/ts" |
| 12 |
rval=0 |
| 13 |
|
| 14 |
case "$1" in |
| 15 |
start_msg) |
| 16 |
echo "Removing the $TSDIR directory" |
| 17 |
;; |
| 18 |
start) |
| 19 |
rm -rf "$TSDIR" |
| 20 |
;; |
| 21 |
*) |
| 22 |
echo "usage: $0 {start|start_msg}" |
| 23 |
rval=1 |
| 24 |
;; |
| 25 |
esac |
| 26 |
|
| 27 |
exit $rval |