You are not logged in.

#1 2024-06-15 09:02:35

bobhund
Member
Registered: 2016-10-25
Posts: 67

[solved] run command on startup

So I would like to run the commands

 sudo modprobe -r b43
sudo modprobe b43 

on startup. I have tried to add them to the startup script, but that apparently did not take.

Anyway its possible?

Last edited by bobhund (2024-06-15 14:00:11)

Offline

#2 2024-06-15 09:44:55

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: [solved] run command on startup

@bobhund
How about creating /etc/rc.local

#!/bin/sh -e
modprobe -r b43
modprobe b43
exit 0

chmod +x /etc/rc.local


...Welcome to the family...

Offline

#3 2024-06-15 11:37:59

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: [solved] run command on startup

Or using 'systemd service unit file' or via 'crontab'.

Offline

#4 2024-06-15 13:59:36

bobhund
Member
Registered: 2016-10-25
Posts: 67

Re: [solved] run command on startup

Robi wrote:

@bobhund
How about creating /etc/rc.local

#!/bin/sh -e
modprobe -r b43
modprobe b43
exit 0

chmod +x /etc/rc.local


That worked perfect.

Offline

Board footer

Powered by FluxBB