Commit 95436237 authored by Alessandro Rubini's avatar Alessandro Rubini

build: configure WR logging at run-time, not build-time

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6c14611b
......@@ -47,14 +47,6 @@ rm -rf $TMPFS/dev
(cd $TMPFS && tar xzf $DEVTAR)
(cd $TMPFS && ln -fs sbin/init .)
# Fix log values
cfgfile="$TMPFS/wr/sbin/start-daemons.sh"
set | grep CONFIG_WRS_LOG | sed 's/=/ /' | while read varname value; do
if [ -z "\$value" ]; then continue; fi
sed -i "/\$varname/ s,\$varname,\$value," \$cfgfile
done
mkdir -p $TMPFS/root/.ssh
#cat $HOME/.ssh/id_?sa.pub >> $TMPFS/root/.ssh/authorized_keys
if [ -f $WRS_BASE_DIR/authorized_keys ]; then
......
......@@ -66,3 +66,12 @@ set | grep CONFIG_SNMP | sed 's/=/ /' | while read varname value; do
sed -i "/$varname/ s/$varname/$value/" $T
done
copy_conf /wr/etc/snmpd.conf
# Fix log values
cp /wr/sbin/start-daemons.sh.in $T
set | grep CONFIG_WRS_LOG | sed 's/=/ /' | while read varname value; do
if [ -z "$value" ]; then continue; fi
sed -i "/$varname/ s,$varname,$value," $T
done
copy_conf /wr/sbin/start-daemons.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment