mirror of
https://github.com/0intro/wmii
synced 2025-02-15 13:54:26 +03:00
17 lines
270 B
Bash
17 lines
270 B
Bash
#!/bin/sh -f
|
|
RC=""
|
|
for i in "$PLAN9" /usr/local/plan9 /usr/local/9 /opt/plan9 /opt/9 /usr/plan9 /usr/9; do
|
|
if [ -d "$i" -a -x "$i/bin/rc" ]; then
|
|
RC="$i/bin/rc"
|
|
break;
|
|
fi
|
|
done
|
|
|
|
if [ ! -n "$RC" ]; then
|
|
exit 1
|
|
elif [ "X$@" != "X" ]; then
|
|
exec $RC $@
|
|
else
|
|
true
|
|
fi
|