Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
snf-network
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
snf-network
Commits
8e8ece4a
Commit
8e8ece4a
authored
Apr 04, 2014
by
Dimitris Aragiorgis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use env var for state dir
Signed-off-by:
Dimitris Aragiorgis
<
dimara@grnet.gr
>
parent
8c9626b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
common.sh
common.sh
+3
-3
ifup-extra
ifup-extra
+4
-5
No files found.
common.sh
View file @
8e8ece4a
...
...
@@ -43,13 +43,13 @@ function try {
function
clear_log
{
rm
-f
/var/lib/snf-network
/
$INTERFACE
rm
-f
$STATE_DIR
/
$INTERFACE
}
function
init_log
{
cat
>
/var/lib/snf-network
/
$INTERFACE
<<
EOF
cat
>
$STATE_DIR
/
$INTERFACE
<<
EOF
INSTANCE=
$INSTANCE
IP=
$IP
EUI64=
$EUI64
...
...
@@ -64,7 +64,7 @@ EOF
function
log
{
echo
$@
>>
/var/lib/snf-network
/
$INTERFACE
echo
$@
>>
$STATE_DIR
/
$INTERFACE
}
...
...
ifup-extra
View file @
8e8ece4a
...
...
@@ -96,11 +96,10 @@ function setup_extra () {
function
save_all_tables
()
{
mkdir
-p
/etc/iptables
date
>
/etc/iptables/date
iptables-save
>
/etc/iptables/snf-network.v4
ip6tables-save
>
/etc/iptables/snf-network.v6
arptables-save
>
/etc/iptables/snf-network.arp
date
>
$STATE_DIR
/date
iptables-save
>
$STATE_DIR
/snf-network.v4
ip6tables-save
>
$STATE_DIR
/snf-network.v6
arptables-save
>
$STATE_DIR
/snf-network.arp
}
...
...
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