From 69effda0bcc952e8b5f0677a023ce4ae7d5865db Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 12 Aug 2021 17:47:51 -0400 Subject: [PATCH] add CAKE configuration unit --- .gitignore | 1 + cake.service | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .gitignore create mode 100644 cake.service diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59a148b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +cake.service.tmp diff --git a/cake.service b/cake.service new file mode 100644 index 0000000..813f22c --- /dev/null +++ b/cake.service @@ -0,0 +1,12 @@ +[Unit] +Description=Set CAKE configuration +After=network.service + +[Service] +Type=oneshot +User=root +Group=root +ExecStart=/usr/bin/tc qdisc replace dev eth0 root cake bandwidth {bandwidth} besteffort + +[Install] +WantedBy=multi-user.target