mirror of
https://git.busybox.net/busybox
synced 2025-05-10 04:33:59 +02:00
19 lines
316 B
Bash
Executable file
19 lines
316 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test "$1" || {
|
|
echo "Syntax: ${0##*/} SERVICE"
|
|
exit 1
|
|
}
|
|
|
|
test x"$1" = x"${1#*/}" -a x"$1" != x"." && {
|
|
# has no slashes and is not a "."
|
|
cd "/var/service/$1" || exit $?
|
|
set -- "."
|
|
}
|
|
|
|
test -x "$1/page" && exec "$1/page"
|
|
|
|
cd "log/logdir" || exit $?
|
|
|
|
test "$PAGER" || PAGER=less
|
|
cat @* current | $PAGER
|