forked from poblin-orange/wondershaper-boshrelease
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Guillaume Berche <[email protected]>
- Loading branch information
1 parent
d6e4a8b
commit 4631784
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
#!/bin/bash | ||
|
||
|
||
# Set config | ||
# > -d <rate> Set maximum download rate (in Kbps) and/or | ||
# > -u <rate> Set maximum upload rate (in Kbps) | ||
/var/vcap/jobs/wondershaper/bin/wondershaper -a <%= p('interface')%> -d <%= p('dspeed')%> -u <%= p('uspeed')%> | ||
|
||
# Show assigned config | ||
# See https://github.com/magnific0/wondershaper#usage | ||
# > -s Show the current status of adapter | ||
/var/vcap/jobs/wondershaper/bin/wondershaper -sa <%= p('interface')%> | ||
|
||
# Note: pre-start are not guaranteed to always start in bosh life-cycle, therefore it is recommended to run this release | ||
# along with https://github.com/orange-cloudfoundry/node-hardening-release/blob/266e7544007a1af4cc613859ac566800a0e17807/jobs/fail-on-raw-reboot/spec#L15-L17 | ||
# More at https://github.com/orange-cloudfoundry/paas-templates/issues/1878 | ||
|
||
exit 0 |