Commit Diff
Diff:
06dcc391eb342aef5a87f7846393618052de93a2
bd2377dee7797ed89c76d4efb46f7d7433a0ff2e
Commit:
bd2377dee7797ed89c76d4efb46f7d7433a0ff2e
Tree:
1ada637bbf3f0e8a05c2c93e968ba4d50d35821f
Author:
Fred. Galusik <dev@galusik.fr>
Committer:
Fred. Galusik <dev@galusik.fr>
Date:
Sat Dec 4 19:42:24 2021 UTC
Message:
-c: use sysctl for kernel version instead of dmesg first line
blob - ed290f8f200f7a9f0b3efb70771dae32018fa96e
blob + c3b078706ca92ce2d2cc5e7a0a639b2ad0b8ba11
--- snaps
+++ snaps
@@ -149,7 +149,7 @@ s_upports() {
s_cur() {
- CURRENTSYS=$(sed q /var/run/dmesg.boot)
+ CURRENTSYS=$(sysctl kern.version | head -1 | sed 's/kern.version=//')
echo "=== LOCAL BASE BUILD DATE ==="
echo "${CURRENTSYS}"
}
Frédéric Galusik