mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 08:25:13 +08:00
⛄ Sync 2026-04-23 20:32:35
This commit is contained in:
1 parent
17738c6f79
commit
fe51d2b304
206 files changed
+725671
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user