Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
ffbs-gluon
Commits
8f7b59d7
Commit
8f7b59d7
authored
11 years ago
by
Matthias Schiffer
Browse files
Options
Downloads
Patches
Plain Diff
gluon-simple-tc: add missing defaults on every upgrade
parent
f9cb8a72
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-simple-tc/Makefile
+3
-3
3 additions, 3 deletions
package/gluon-simple-tc/Makefile
package/gluon-simple-tc/invariant.pl
+5
-10
5 additions, 10 deletions
package/gluon-simple-tc/invariant.pl
with
8 additions
and
13 deletions
package/gluon-simple-tc/Makefile
+
3
−
3
View file @
8f7b59d7
...
...
@@ -27,13 +27,13 @@ define Build/Configure
endef
define
Build/Compile
$(GLUON_CONFIGURE)
in
itial
.pl
>
$(PKG_BUILD_DIR)/in
itial
.sh
$(GLUON_CONFIGURE)
in
variant
.pl
>
$(PKG_BUILD_DIR)/in
variant
.sh
endef
define
Package/gluon-simple-tc/install
$(CP)
./files/*
$(1)/
$(INSTALL_DIR)
$(1)/lib/gluon/upgrade/simple-tc/in
itial
$(INSTALL_BIN)
$(PKG_BUILD_DIR)/in
itial
.sh
$(1)/lib/gluon/upgrade/simple-tc/in
itial
/010-site-defaults
$(INSTALL_DIR)
$(1)/lib/gluon/upgrade/simple-tc/in
variant
$(INSTALL_BIN)
$(PKG_BUILD_DIR)/in
variant
.sh
$(1)/lib/gluon/upgrade/simple-tc/in
variant
/010-site-defaults
endef
$(
eval
$(
call BuildPackage,gluon-simple-tc
))
This diff is collapsed.
Click to expand it.
package/gluon-simple-tc/in
itial
.pl
→
package/gluon-simple-tc/in
variant
.pl
+
5
−
10
View file @
8f7b59d7
my
$cfg
=
$CONFIG
->
{
simple_tc
};
print
<<'END';
#/bin/sh
uci -q batch <<EOF
END
print
"
#/bin/sh
\n\n
";
foreach
my
$name
(
sort
keys
%
{
$cfg
})
{
my
$interface
=
$cfg
->
{
$name
};
print
"
uci -q get gluon-simple-tc.
$name
>/dev/null || uci -q batch <<EOF
\n
";
print
"
set gluon-simple-tc.
$name
=interface
\n
";
for
(
qw(enabled ifname limit_egress limit_ingress)
)
{
print
"
set gluon-simple-tc.
$name
.
$_
=
$interface
->{
$_
}
\n
";
}
}
print
<<END;
print
"
EOF
\n\n
";
}
commit gluon-simple-tc
EOF
END
print
"
uci commit gluon-simple-tc
\n
";
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment