File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sudo / init.d / aix.sh.in
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Jun 15 16:12:54 2014 UTC (11 years, 6 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

#!/bin/sh
#
# Simple AIX rc.d script to remove the sudo timestamp directory on boot.
# This is needed because AIX does not have /var/run.
# Install as /etc/rc.d/init.d/sudo with a link /etc/rc.d/rc2.d/S90sudo
#

PATH=/usr/sbin:/usr/bin:/sbin
export PATH

TSDIR="@rundir@/ts"
rval=0

case "$1" in
start)
    echo "Removing the $TSDIR directory"
    rm -rf "$TSDIR"
    ;;
*)
    echo "usage: $0 start"
    rval=1
    ;;
esac

exit $rval

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>