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

Adding custom pages and upgrading them

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 1.3k 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.
  • R
    rphelps
    last edited by Dec 31, 2009, 7:46 PM

    We're building a pfSense-based web appliance on a Soekris 5501 box.  We want to use the serial port on the device to talk to something.  To this end, we have written some custom php files that we put into /usr/local/www/soap  It appears that the embedded system build really wants to write to the other partition during upgrades, and that you can only use nanobsd.upgrade.*.tgz files in order to meet the requirements of the file_is_for_platform() function in pfSense's system_firmware.php (it checks against /etc/platform which is "nanobsd" for embedded systems).

    Is there an easy way to use the existing pfSense upgrade page and utilities to install/upgrade our custom php files, or will we have to roll our own for this?

    Thanks.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jan 1, 2010, 12:01 AM

      Store your pages in /conf/ <somewhere>as long as they are not too large, then add a shellcmd to the config to copy them over to the proper place if they do not yet exist (or on every boot just to be safe)</somewhere>

      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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received