Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
f0f5ec8c
Commit
f0f5ec8c
authored
Feb 01, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: ask for remote syslog host and mode
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
3773a668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Kconfig
Kconfig
+12
-0
wrs_build_wraprootfs
build/scripts/wrs_build_wraprootfs
+8
-0
No files found.
Kconfig
View file @
f0f5ec8c
...
...
@@ -59,6 +59,18 @@ config DNS_DOMAIN
If CONFIG_DNS_SERVER is being used, this option may be
useful as well.
config REMOTE_SYSLOG_SERVER
string "Send WRS syslog messages to this remote host"
help
This IP address or name, if not empty enables remote syslog
in the switch; all messages are sent to this specific host.
config REMOTE_SYSLOG_UDP
bool "Use UDP for syslog messages"
default y
help
Select UDP to send system logs. If not set, TCP is used.
config KEEP_ROOTFS
bool "Keep generated filesystem and related script"
help
...
...
build/scripts/wrs_build_wraprootfs
View file @
f0f5ec8c
...
...
@@ -53,6 +53,14 @@ if [ ! -z "$CONFIG_DNS_SERVER" ]; then
fi
fi
if [ "
$CONFIG_REMOTE_SYSLOG_UDP
" = "y" ]; then
sed -i 's/@@remote-host/@remote-host/'
$TMPFS
/etc/rsyslog.conf
fi
if [ ! -z "
$CONFIG_REMOTE_SYSLOG_SERVER
" ]; then
sed -i '/remote-host/ s/^##//'
$TMPFS
/etc/rsyslog.conf
sed -i 's/remote-host/
$CONFIG_REMOTE_SYSLOG_SERVER
/'
$TMPFS
/etc/rsyslog.conf
fi
mkdir -p
$TMPFS
/root/.ssh
#cat
$HOME
/.ssh/id_?sa.pub >>
$TMPFS
/root/.ssh/authorized_keys
if [ -f
$WRS_BASE_DIR
/authorized_keys ]; then
...
...
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