projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b177c14
)
base-files: fix error message during boot
author
Luka Perkov
<luka@openwrt.org>
Tue, 10 May 2016 22:36:15 +0000
(22:36 +0000)
committer
Luka Perkov
<luka@openwrt.org>
Tue, 10 May 2016 22:36:15 +0000
(22:36 +0000)
preinit spews out this message
"cat: can't open '/proc/device-tree/model': No such file or directory"
Signed-off-by: John Crispin <john@phrozen.org>
SVN-Revision: 49324
package/base-files/files/lib/preinit/10_sysinfo
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/preinit/10_sysinfo
b/package/base-files/files/lib/preinit/10_sysinfo
index 42fd5b62399da225b557bfd85ad0a37b567df71a..be1e6aeca90e09f17a0c45dcd96e8fcebebc823a 100644
(file)
--- a/
package/base-files/files/lib/preinit/10_sysinfo
+++ b/
package/base-files/files/lib/preinit/10_sysinfo
@@
-3,7
+3,7
@@
do_sysinfo_generic() {
mkdir -p /tmp/sysinfo
[ -e /tmp/sysinfo/board_name ] || \
echo "$(strings /proc/device-tree/compatible | head -1)" > /tmp/sysinfo/board_name
- [ -
e /tmp/sysinfo/model ] ||
\
+ [ -
n /tmp/sysinfo/model -a -e /proc/device-tree/model ] &&
\
echo "$(cat /proc/device-tree/model)" > /tmp/sysinfo/model
}