mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 18:41:15 +08:00
22 lines
267 B
Bash
Executable File
22 lines
267 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
main() {
|
|
local log_file
|
|
|
|
log_file="$(uci_get system @system[0] log_file "")"
|
|
if [ -f "$log_file" ]; then
|
|
cat "$log_file"
|
|
return
|
|
fi
|
|
|
|
if [ -f /sbin/logread ]; then
|
|
/sbin/logread -e ^
|
|
else
|
|
/usr/sbin/logread -e ^
|
|
fi
|
|
}
|
|
|
|
main
|