Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Disabling rfkill on the boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alexgor
n00b
n00b


Joined: 15 Aug 2022
Posts: 4

PostPosted: Mon Aug 15, 2022 12:04 pm    Post subject: [SOLVED] Disabling rfkill on the boot Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54808
Location: 56N 3W

PostPosted: Mon Aug 15, 2022 1:07 pm    Post subject: Reply with quote

alexgor,

Welcome to the forums.

See /etc/local.d/README

Essentially, you write a script that does
Code:
rfkill unblock all


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
View user's profile Send private message
alexgor
n00b
n00b


Joined: 15 Aug 2022
Posts: 4

PostPosted: Mon Aug 15, 2022 1:10 pm    Post subject: Reply with quote

NeddySeagoon, thanks a lot. I will read that manpages.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3948

PostPosted: Mon Aug 15, 2022 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
alexgor
n00b
n00b


Joined: 15 Aug 2022
Posts: 4

PostPosted: Mon Aug 15, 2022 1:21 pm    Post subject: Reply with quote

alamahant, Thank you a lot ! :D

Will try it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54808
Location: 56N 3W

PostPosted: Mon Aug 15, 2022 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
alexgor
n00b
n00b


Joined: 15 Aug 2022
Posts: 4

PostPosted: Mon Aug 15, 2022 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum