Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #267915

Re: where are the crontab files in Trixie?

From Gary Dale <gary@extremeground.com>
Newsgroups linux.debian.user
Subject Re: where are the crontab files in Trixie?
Date 2024-02-27 20:20 +0100
Message-ID <Icb9D-d2Jf-3@gated-at.bofh.it> (permalink)
References <Ic7pn-d0tg-5@gated-at.bofh.it> <Ic7IJ-d0zQ-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2024-02-27 10:32, Greg Wooledge wrote:
> 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.
>
Yep. That works.  Thanks.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

where are the crontab files in Trixie? Gary Dale <gary@extremeground.com> - 2024-02-27 16:20 +0100
  Re: where are the crontab files in Trixie? The Wanderer <wanderer@fastmail.fm> - 2024-02-27 16:30 +0100
    Re: where are the crontab files in Trixie? Gary Dale <gary@extremeground.com> - 2024-02-27 20:20 +0100
      Re: where are the crontab files in Trixie? Greg Wooledge <greg@wooledge.org> - 2024-02-28 04:20 +0100
      Re: where are the crontab files in Trixie? The Wanderer <wanderer@fastmail.fm> - 2024-02-28 04:20 +0100
  Re: where are the crontab files in Trixie? Kushal Kumaran <kushal@locationd.net> - 2024-02-27 16:30 +0100
    Re: where are the crontab files in Trixie? Gary Dale <gary@extremeground.com> - 2024-02-27 20:20 +0100
      Re: where are the crontab files in Trixie? Jeffrey Walton <noloader@gmail.com> - 2024-02-27 20:20 +0100
        Re: where are the crontab files in Trixie? Gary Dale <gary@extremeground.com> - 2024-02-27 20:40 +0100
          Re: where are the crontab files in Trixie? Gremlin <scott-andrews@columbus.rr.com> - 2024-02-27 22:10 +0100
        Re: where are the crontab files in Trixie? Charles Curley <charlescurley@charlescurley.com> - 2024-02-27 21:00 +0100
          Re: where are the crontab files in Trixie? Greg Wooledge <greg@wooledge.org> - 2024-02-27 21:00 +0100
            Re: where are the crontab files in Trixie? Gremlin <scott-andrews@columbus.rr.com> - 2024-02-27 22:20 +0100
            Re: where are the crontab files in Trixie? Andy Smith <andy@strugglers.net> - 2024-02-28 16:10 +0100
  Re: where are the crontab files in Trixie? Greg Wooledge <greg@wooledge.org> - 2024-02-27 16:40 +0100
    Re: where are the crontab files in Trixie? Gary Dale <gary@extremeground.com> - 2024-02-27 20:20 +0100
  Re: where are the crontab files in Trixie? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-02-27 16:40 +0100
    Re: where are the crontab files in Trixie? David Wright <deblis@lionunicorn.co.uk> - 2024-02-28 04:40 +0100
      Re: where are the crontab files in Trixie? Max Nikulin <manikulin@gmail.com> - 2024-02-28 16:40 +0100
        Re: where are the crontab files in Trixie? Nicolas George <george@nsup.org> - 2024-02-28 17:00 +0100
        Re: where are the crontab files in Trixie? David Wright <deblis@lionunicorn.co.uk> - 2024-02-29 05:40 +0100
          Re: where are the crontab files in Trixie? Max Nikulin <manikulin@gmail.com> - 2024-02-29 16:20 +0100

csiph-web