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
86
Issues
86
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
1ba50d11
Commit
1ba50d11
authored
Aug 12, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rootfs: remove function copy_conf from apply_dot-config
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
40052e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
apply_dot-config
userspace/rootfs_override/wr/bin/apply_dot-config
+1
-9
No files found.
userspace/rootfs_override/wr/bin/apply_dot-config
View file @
1ba50d11
...
...
@@ -9,19 +9,11 @@
# When called with "local_config" parameter, files with information about
# dotconfig source are removed (used by SNMP)
# We create a temporary file in /tmp, to avoid wearing flash if not
# needed. Then we replace the real file if different.
# We create a temporary file in /tmp, store all files in ramdisk
tmpdir
=
/tmp
T
=
$(
mktemp
"
$tmpdir
"
/config-XXXXXX
)
copy_conf
()
{
# busybox cmp exits 1 or 2 according to GNU man page
for
dest
in
$*
;
do
cmp
-s
$T
$1
||
cp
$T
$1
done
}
# check if config is local, used by webinterface
if
[
"
$1
"
==
"local_config"
]
;
then
# remove source information in case previous config was received from
...
...
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