Custom initialization?

Comments

9 comments

  • Avatar
    Firewalla

    are you on alpha?  you need to be on early access and also these scripts only work on the gold (for now, and will be available to other platforms when they reason 1.971).  https://help.firewalla.com/hc/en-us/community/posts/360046872134-Early-Access-Onboarding

     

    0
    Comment actions Permalink
  • Avatar
    Bernie Doehner

    Oh boy. I am not on beta at the moment. That would explain what I am missing for the startup script to work. Let me try joining beta

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Make sure you are on early access, early access is earlier than beta :)  Early access is a bit less stable, but ... we are very liberal on changing things based on your feedback.

    0
    Comment actions Permalink
  • Avatar
    Bernie Doehner

    Oh.. I only know how to sign up for beta. How do I go to alpha?

    0
    Comment actions Permalink
  • Avatar
    Bernie Doehner

    Ok, I connected the dots reread our documentation and am now running Early Access.

     

    Here is what I have in ~.firewall/config/post_main.d

    pi@firewalla:~/.firewalla/config/post_main.d (Laconia) $ ls -la

    total 16

    drwxrwxr-x 2 pi pi 4096 Oct  5 20:24 .

    drwxr-xr-x 6 pi pi 4096 Oct  5 19:54 ..

    -rwxr-xr-x 1 pi pi  186 Oct  5 19:40 add.sh

    -rwxr-xr-x 1 pi pi   47 Oct  5 19:50 hello.sh

    pi@firewalla:~/.firewalla/config/post_main.d (Laconia) $

    pi@firewalla:~/.firewalla/config/post_main.d (Laconia) $ cat add.sh

    sleep 300

    (crontab -u pi -l ; echo "* * * * * /home/pi/NASHUA_UP.sh" | sort -) | uniq - | crontab -u pi -

    pi@firewalla:~/.firewalla/config/post_main.d (Laconia) $ cat hello.sh

    echo "BERNIE WAS HERE" > /home/pi/LOG_WAS_HERE

     

    Neither add.sh nor hello.sh are being called, yet I can run them by hand.

    What am I doing wrong?

     

     

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Bernie Doehner

    I think I found it.   My firewalla app says I am on 1.97 but 

    https://help.firewalla.com/hc/en-us/articles/360051625034-Guide-How-to-install-Pi-Hole-on-Gold-Beta-?source=search&auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjoyMTU1NjA2LCJ1c2VyX2lkIjo0MDYzNTAxOTU0OTMsInRpY2tldF9pZCI6MjE5MDEsImNoYW5uZWxfaWQiOjYzLCJ0eXBlIjoiU0VBUkNIIiwiZXhwIjoxNjA1MDMyNDkwfQ.md1RJaeJVmr89JKImgQJffR7LU6WwIkeUk9ntZfg1KU

     

    Says I need to run 1.971

     

    Let me guess, this will happen automatically now that I am on Early Access (switched about 20 minutes ago)

    0
    Comment actions Permalink
  • Avatar
    Firewalla

    Check the about button, if it says 1.971 then it is on 1.971

    0
    Comment actions Permalink
  • Avatar
    Jeremy

    typically you also add the shebang at the top of the script but it depends how the script is being executed.

    add

    #!/bin/sh

    make sure you chmod +x to toggle the executable flag.

    update this thread with success or failure. i'm curious if you got this working or not.

    0
    Comment actions Permalink
  • Avatar
    James Willhoite

    @firewalla when the script is executed, is it executed as root or pi?

    0
    Comment actions Permalink

Please sign in to leave a comment.