View previous topic :: View next topic |
Author |
Message |
alexgor n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Mon Aug 15, 2022 12:04 pm Post subject: [SOLVED] Disabling rfkill on the boot |
|
|
Hello everyone, how are you doing ?
Just want to ask quick question here, because couldn't find any direct manual on this topic neither in Gentoo wiki nor on this forum, sorry if I missed it somewhere.
How could I disable rfkill by default ?
Because it's soft blocking my wifi and bluetooth everytime that system boots and it's not very convenient to 'rfkill unblock all' eveytime that I turn on my Laptop
I'm using OpenRC init system. Should I configure something in /etc/rc.conf or /etc/conf.d ?
.
Thanks a lot for any insights !
Last edited by alexgor on Mon Aug 15, 2022 6:24 pm; edited 2 times in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Mon Aug 15, 2022 1:07 pm Post subject: |
|
|
alexgor,
Welcome to the forums.
See /etc/local.d/README
Essentially, you write a script that does
That might be considered a bit hacky, so I'm sure that someone else will be along soon to put me right. :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alexgor n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Mon Aug 15, 2022 1:10 pm Post subject: |
|
|
NeddySeagoon, thanks a lot. I will read that manpages. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3948
|
Posted: Mon Aug 15, 2022 1:15 pm Post subject: |
|
|
This is strange behavior.
Try
Code: |
cat >> /etc/local.d/rfkill.start << EOF
#!/bin/bash
/usr/sbin/rfkill unblock all
EOF
chmod +x /etc/local.d/rfkill.start
rc-update add local default
|
Welcome to Gentoo Forums! _________________
|
|
Back to top |
|
|
alexgor n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Mon Aug 15, 2022 1:21 pm Post subject: |
|
|
alamahant, Thank you a lot !
Will try it. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Mon Aug 15, 2022 1:22 pm Post subject: |
|
|
alamahant,
That's feeding a man a fish to feed him for a day.
local should be in the default runlevel already but it does not harm to check. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alexgor n00b
Joined: 15 Aug 2022 Posts: 4
|
Posted: Mon Aug 15, 2022 3:51 pm Post subject: |
|
|
Thanks again for the help !
Adding rfkill.start script to the /etc/local.d did help. Now rfkill isn't blocking anything after boot. |
|
Back to top |
|
|
|