Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
ipw
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2014-11-05 18:57:04 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d7fb5ce6ada53b072c71672776468f29e2c24ac8
d7fb5ce6
1 parent
392f6a26
Added a protection against empty config file
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
ipw
ipw
View file @
d7fb5ce
...
...
@@ -311,6 +311,13 @@ case "$CMD" in
fix
)
#fix all interfaces to config state
#brctl addif bond0 eth2
if
[[
"
$IPW_CONFIG_PATH
"
!
=
"/dev/null"
]]
;
then
if
[[
"
$(
cat
$IPW_CONFIG_PATH
2>/dev/null
)
"
=
""
]]
;
then
eerror
"Empty config file"
exit
-1
fi
fi
#GETTING INFORMATION ABOUT LXC INTERFACES IN BRIDGES
if
[[
"
$LXC_DIR
"
!
=
""
]]
;
then
...
...
Please
register
or
login
to post a comment