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

    Modify /usr/local/bin/beep.sh to play startup and shutdown sounds via mp3

    Scheduled Pinned Locked Moved Hardware
    5 Posts 2 Posters 2.4k 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.
    • B
      beatstick
      last edited by

      I modified beep.sh in the following way to play mp3 sounds on the integrated speaker connected to the soundcard on my board (mpeg321 is installed to play mp3s).
      (My board does not have a mainboard beeper.)

      http://imgur.com/GXRrJ3A

      It works for the startup but not for the shutdown jingle. The shutdown sound does not work with the file used for startup either.
      What could be wrong with my beep.sh?

      Also: Maybe someone has a recording of the original pfsense jingle, that would be awesome.
      beep.png
      beep.png_thumb

      1 Reply Last reply Reply Quote 0
      • B
        beatstick
        last edited by

        I found out today that the shutdown sound gets played, if I logoff from pfsense via the webgui. What commands does the webgui use for reboot and halt (shutdown)? I'd like to implement those commands into my shutdown script.

        1 Reply Last reply Reply Quote 0
        • R
          robi
          last edited by

          That's a great idea!

          1 Reply Last reply Reply Quote 0
          • B
            beatstick
            last edited by

            I ended up implementing the shutdown sound  into my shutdown script (python). I have no clue why ("$1" = stop)  does not get called when shutting down via "shutdown -p now", nor via the "halt" command. I am giving up on beep.sh as its functions via python script.

            1 Reply Last reply Reply Quote 0
            • R
              robi
              last edited by

              I like this approach because many modern hardware although they have onboard speaker, or at least they do have speaker header connector, they don't play any sound at the beep command.
              It's somehow related to the onboard soundcard.

              For example, on an HP t5730 thin client, you don't get any beeps - using beep command (not even in Linux) unless you keep the onboard soundcard enabled on BIOS.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.