Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Disable startup/shutdown sounds

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    11 Posts 5 Posters 8.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jimpJ Offline
      jimp Rebel Alliance Developer Netgate
      last edited by

      Edit /usr/local/bin/beep.sh and customize however you like. :-)

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • R Offline
        rpsmith
        last edited by

        can I just delete the file if I want to kill all sound effects?  if not, what changes to the file are required to kill all sound effects?

        Roy…

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          If you edit the file, it's rather obvious…

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • R Offline
            rpsmith
            last edited by

            I looked at the file before I posted my question.  I'm not a coder so I'm going to need a little hand-holding here.  :)

            Roy…

            1 Reply Last reply Reply Quote 0
            • jimpJ Offline
              jimp Rebel Alliance Developer Netgate
              last edited by

              Doesn't take a coder to see all the lines that call a command called "beep" and deduce that's what makes a beep.
              :-)

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • R Offline
                rpsmith
                last edited by

                Thanks for all the help jimp,

                I think I'll just put a switch in series with the speaker as I am a hardware guy.

                Roy…

                1 Reply Last reply Reply Quote 0
                • R Offline
                  routerfreak
                  last edited by

                  I found this solution in another place:

                  You can just rm beep.sh, and if you add that to an <earlyshellcmd>tag so it's done on every boot, upgrades won't matter.

                  The hidden config.xml option <earlyshellcmd>will run the command specified at the beginning of the boot process. Normally you should use <shellcmd>rather than this, though this may be necessary in some circumstances. Similarly to <shellcmd>, to add a <earlyshellcmd>option, backup the configuration, open it in a text editor, and add a line such as the following above :

                  <earlyshellcmd>rm /usr/local/bin/beep.sh</earlyshellcmd>

                  Where "rm /usr/local/bin/beep.sh" is the command to run. You can add multiple <earlyshellcmd>lines to execute multiple commands. Save your changes and restore the modified configuration.</earlyshellcmd></earlyshellcmd></shellcmd></shellcmd></earlyshellcmd></earlyshellcmd>

                  Router Hardware: Supermicro A1SRi-2758F, 2x Kingston KVR16LSE11-4KF (4GB DDR3L SODIMM-1600 ECC),
                  Router OS: pfSense-2.4.3-RELEASE, Packages: Cron 0.3.7_2, Open-VM-Tools 10.1.0, siproxd 1.1.3_3

                  1 Reply Last reply Reply Quote 0
                  • jimpJ Offline
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Or just install the shellcmd package and manage the commands that way.

                    Though I still wouldn't recommend just removing the file, as it will cause the process that calls it to error off (though probably without many/any side effects).

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      rpsmith
                      last edited by

                      or a GUI option could be added to disable this "feature".

                      Roy…

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        ericab
                        last edited by

                        rpsmith;

                        ill help you.

                        delete all the old text, and copy and paste this in its place.

                        
                        # Check for different HZ
                        if [ -f /boot/loader.conf ]; then
                                HZ=`/usr/bin/grep -c kern.hz /boot/loader.conf`
                                if [ "$HZ" = "1" ]; then
                                        NOTELENGTH="10"
                                fi
                        fi
                        
                        if [ -c "/dev/speaker" ]; then
                                        if [ "$1" = "start" ]; then
                        #                       /usr/local/bin/beep -p 500 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 400 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 600 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 800 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 800 $NOTELENGTH
                                        fi
                                        if [ "$1" = "stop" ]; then
                        #                       /usr/local/bin/beep -p 600 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 800 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 500 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 400 $NOTELENGTH
                        #                       /usr/local/bin/beep -p 400 $NOTELENGTH
                                        fi
                        fi
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.