Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
95436237
Commit
95436237
authored
Nov 27, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: configure WR logging at run-time, not build-time
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
6c14611b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
wrs_build_wraprootfs
build/scripts/wrs_build_wraprootfs
+0
-8
apply_dot-config
userspace/rootfs_override/wr/bin/apply_dot-config
+9
-0
start-daemons.sh.in
userspace/rootfs_override/wr/sbin/start-daemons.sh.in
+0
-0
No files found.
build/scripts/wrs_build_wraprootfs
View file @
95436237
...
...
@@ -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
...
...
userspace/rootfs_override/wr/bin/apply_dot-config
View file @
95436237
...
...
@@ -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
userspace/rootfs_override/wr/sbin/start-daemons.sh
→
userspace/rootfs_override/wr/sbin/start-daemons.sh
.in
View file @
95436237
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment