forked from freifunk-franken/firmware
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>master
parent
961c4da648
commit
776cfe9f86
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q set "alfred.alfred.mode=master"
|
||||
|
||||
uci -q commit alfred
|
||||
|
||||
exit 0
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "10 fff" >> /etc/iproute2/rt_tables
|
||||
|
||||
exit 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! grep -q u32 /etc/iproute2/ematch_map;
|
||||
then
|
||||
echo "3 u32" > /etc/iproute2/ematch_map
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue