pfSense Gold Subscription

Author Topic: [LCDProc] - Could not read config file  (Read 15217 times)

0 Members and 1 Guest are viewing this topic.

Offline stephenw10

  • Administrator
  • Hero Member
  • *****
  • Posts: 11912
  • Karma: +467/-15
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #75 on: January 18, 2015, 12:54:44 pm »
Not much motivation since it works fine if you don't use the php client and move the config file, which is how I'm running it.  ;)

Since this appears to be a PBI problem do we have a link to some PBI docs? pfSense is moving away from PBIs in the future so it may be solved by that anyway.

Steve

Offline Topper727

  • Full Member
  • ***
  • Posts: 245
  • Karma: +25/-0
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #76 on: January 20, 2015, 10:55:20 am »
Made some changes to the LCDproc.inc file and it works now on 64 bit.

https://github.com/topper727/pfsense-packages/commit/2cd89f970053f4bf0fa23d0b88f50e69ab68f410

I hope someone can bump the version number as I not skilled at that yet

I can even make changes in UI page and the screen will restart and show the things I that I changed like I want
« Last Edit: January 20, 2015, 11:30:24 am by Topper727 »
Dell 2950 g3 server
Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
Current: 2000 MHz, Max: 2667 MHz
8 CPUs: 2 package(s) x 4 core(s)
8152 MiB and 600meg 10k drive
Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

Offline phil.davis

  • Hero Member
  • *****
  • Posts: 4612
  • Karma: +550/-3
    • View Profile
    • International Nepal Fellowship
Re: [LCDProc] - Could not read config file
« Reply #77 on: January 20, 2015, 11:17:20 am »
Made some changes to the LCDproc.inc file and it works now on 64 bit.

https://github.com/topper727/pfsense-packages/commit/2cd89f970053f4bf0fa23d0b88f50e69ab68f410

I hope someone can bump the version number as I not skilled at that yet
I expect you will need code to set LCDPROC_CONFIG differently depending on the pfSense version, so that the package will still also work on older pfSense versions.
e.g. Bandwidthd does tests to "Check pfSense version" from line 31 of:
https://github.com/pfsense/pfsense-packages/blob/master/config/bandwidthd/bandwidthd.inc

Set a constant with define() and use it further down to substitute the path as needed.

Also, why do you need to add the "address of" "&" in various function parameters?

The version bump is just a matter of editing the files at:
https://github.com/pfsense/pfsense-packages
like:
pkg_config.10.xml
pkg_config.8.xml
pkg_config.8.xml.amd64

Search for lcdproc and see where the version is - increment the last number.
As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

Offline Topper727

  • Full Member
  • ***
  • Posts: 245
  • Karma: +25/-0
    • View Profile
Re: [LCDProc] - Could not read config file
« Reply #78 on: January 20, 2015, 11:34:00 am »
The & was in my config.. not sure if I did while back or was part of a update that I got.  Either way that worked.  But yes you have point since the package points to amd 64 locations that would cause issue with i386 and older versions as I think they have different file structure

My skills are limited.. Hope someone will help with this.

And my time is limited also..

Found Jim-p did that & stuff to the file little while ago
https://github.com/topper727/pfsense-packages/commit/a890380266da7f589b809701bd3d0e8ac715e82f
« Last Edit: January 20, 2015, 03:09:03 pm by Topper727 »
Dell 2950 g3 server
Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
Current: 2000 MHz, Max: 2667 MHz
8 CPUs: 2 package(s) x 4 core(s)
8152 MiB and 600meg 10k drive
Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.