I am running arch Linux and have used this rc-local service:
[Unit]
Description=/etc/rc.local compatibility
[Service]
Type=oneshot
ExecStart=/etc/rc.local
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
This is my rc.local:
#!/usr/bin/env bash
iwconfig wlp6s0 frag 256
iwconfig wlp6s0 rts 256
iwconfig wlp6s0 retry 7
exit 0
The only command that gets run is the retry one. I can see this using the output of sudo iwconfig which returns:
wlp6s0 IEEE 802.11abg ESSID:"Hoersdal 5G"
Mode:Managed Frequency:5.18 GHz Access Point: 54:A0:50:5B:C2:34
Bit Rate=117 Mb/s Tx-Power=200 dBm
Retry short long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=35/70 Signal level=-75 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
How do I fix this ?
BTW I have made it executable by using sudo chmod +x /etc/rc.local