I downloaded wondershaper because i want limit my wifi card to 600/30kb/s. In debian OS i type only: wondershaper wlan0 4800 300 and all works. In opensuse this not works this way.
I know that there are 2 files
/etc/init.d/wondershaper
/etc/sysconfig/wondershaper
First is initialize file and 2 configuration for wondershaper.
Changed this to:
WSHAPER_DEV=“wlp2s0f0”
WSHAPER_DOWNLINK=“4800”
WSHAPER_UPLINK=“300”
…
and now i have problem with start wondershaper service.
ja@ja-pc:~> sudo /etc/init.d/wondershaper start
[sudo] password for root:
redirecting to systemctl start wondershaper.service
Failed to start wondershaper.service: Unit wondershaper.service not found.
ja@ja-pc:~>
Wondershaper does not have a .service file, you need to start it either with; **sudo **rcwondershaper start or **sudo /etc/init.d/wondershaper start
**Looking at the SysV init file, it should be trivial to convert it to a service file but I’m guessing it’s not that popular of a script so it’s on low priority.
Well, I was curious about this and tested myself - it seems that the script only works if you su to root, enter /etc/init.d with cd and then run ./wondershaper start
Prolly the script has some issues and hasn’t been updated in eons.
Yast helped me.
Yast -> Service-Manager -> enable and start wondershaper
Now works and if i want change download upload then i need only edit /etc/sysconfig/wondersharper file
WSHAPER_DOWNLINK=“1000” = 1000 kbps = 125kB/s = 125 * 8
WSHAPER_UPLINK=“300” = 300 kbps = 37,5kB/s = 37,5*8
For reasons unknown, that didn’t seem to work for me and it also complained about the lack of a .service file until I uninstalled, reinstalled and systemctl’d it once.