mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
21 lines
246 B
Bash
21 lines
246 B
Bash
#!/bin/sh -f
|
|
RC=""
|
|
IFS=:
|
|
for i in "$PLAN9" `echo 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
|