wmii/cmd/wmii9rc.sh
2007-04-05 14:15:15 -04:00

20 lines
231 B
Bash

#!/bin/sh -f
RC=""
for i in "$PLAN9" P9PATHS; do
if [ -d "$i" -a -x "$i/bin/rc" ]; then
export PLAN9="$i"
RC="$i/bin/rc"
break;
fi
done
if [ ! -n "$RC" ]; then
exit 1
fi
if [ -n "$1" ]; then
exec $RC "$@"
else
true
fi