On Tue, Feb 27, 2024 at 10:15:59AM -0500, Gary Dale wrote: > I'm running Debian/Trixie on an AMD64 system. I have an old wifi adapter > that Linux has problems with that works once I run: > > /usr/sbin/modprobe brcmfmac > echo 13b1 0bdc > /sys/bus/usb/drivers/brcmfmac/new_id > > However when I add those lines to the root's crontab using # crontab -e as > > @reboot /usr/sbin/modprobe brcmfmac > @reboot echo 13b1 0bdc > /sys/bus/usb/drivers/brcmfmac/new_id > > the second line fails. I get an e-mail stating "/bin/sh: 1: cannot create > /sys/bus/usb/drivers/brcmfmac/new_id: Directory nonexistent"
Having two separate @reboot lines might run them both in parallel, rather than sequentially. It might be better to combine them into one shell command, or one script. Something like this, perhaps: @reboot /usr/sbin/modprobe brcmfmac && echo 13b1 0bdc > /sys/bus/usb/drivers/brcmfmac/new_id Or put the commands into a shell script, then run the script from crontab.