This website requires JavaScript.
Explore
Help
Sign In
mark
/
firmware
forked from
freifunk-franken/firmware
Watch
1
Star
0
Fork
You've already forked firmware
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
1cf4d762ff
firmware
/
src
/
packages
/
fff
/
fff-boardname
/
files
/
etc
/
uci-defaults
/
15-fff-boardname
7 lines
95 B
Plaintext
Raw
Normal View
History
Unescape
Escape
fff-boardname: mv rc.local board detect to package Signed-off-by: Tim Niemeyer <tim@tn-x.org> Reviewed-by: Jan Kraus <mayosemmel@gmail.com>
2016-06-10 23:58:11 +02:00
BOARD=$(cat /var/sysinfo/board_name)
uci set board.model.name=$BOARD
uci commit board
treewide: add "exit 0" for uci-defaults files uci-defaults scripts are supposed to be run once after firstboot and then removed. However, the removal only takes place if the subshell created for the sourced scripts returns exit code 0. For some of the files, the last command returned a different exit code, though, leading to the script remaining in its location and being executed for every boot. To prevent cases like the latter, this adds an "exit 0" to all uci-defaults files in our package store. While at it, remove the shebang for all these files since they are sourced (and not executed). Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
2020-04-22 16:32:46 +02:00
exit 0