"Fossies" - the Fresh Open Source Software Archive

Member "sudo-1.9.11p3/etc/init.d/aix.sh.in" (12 Jun 2022, 436 Bytes) of package /linux/misc/sudo-1.9.11p3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #
    3 # Simple AIX rc.d script to remove the sudo timestamp directory on boot.
    4 # This is needed because AIX does not have /var/run.
    5 # Install as /etc/rc.d/init.d/sudo with a link /etc/rc.d/rc2.d/S90sudo
    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)
   16     echo "Removing the $TSDIR directory"
   17     rm -rf "$TSDIR"
   18     ;;
   19 *)
   20     echo "usage: $0 start"
   21     rval=1
   22     ;;
   23 esac
   24 
   25 exit $rval