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

Help with lcdexec

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 2 Posters 2.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
    raysantana
    last edited by Oct 20, 2012, 4:25 PM

    Hello Friends!

    I have a created an lcdexec.conf file for my crystalfontz 633 lcd screen, it works perfectly, i am also using LCDproc-dev package.

    The problem is that lcdexec doesnt run automatillacy on boot, i have to manually type: lcdexec for my display to start showing me the menu.

    Here is what i have done:

    *Search the forum for my problem: No luck there, i dont know if people dont use lcdexec much.
    *i have created the file: /usr/local/etc/rc.d/lcdexec.sh with this info:

    #!/bin/sh

    $FreeBSD: ports/sysutils/lcdproc/files/lcdexec.in,v 1.3 2012/01/14 08:57:01 dougb Exp $

    PROVIDE: lcdexec

    REQUIRE: LCDd

    DO NOT CHANGE THESE DEFAULT VALUES HERE

    SET THEM IN THE /etc/rc.conf FILE

    . /etc/rc.subr

    name="lcdexec"
    rcvar=lcdexec_enable

    load_rc_config $name

    : ${lcdexec_enable="YES"}
    : ${lcdexec_conf="/usr/local/etc/lcdexec.conf"}
    : ${lcdexec_flags="-c ${lcdexec_conf}"}

    required_files=${lcdexec_conf}
    command="/usr/local/bin/lcdexec"

    run_rc_command "$1"

    I dont know what else to do for lcdexec to autostart on boot after the LCDd services has finish loading.

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Oct 20, 2012, 6:34 PM

      You're right, people don't use it much!  ;)
      However a few people do use it. Search in the lcdproc-dev thread for some examples.
      A common cause of something running from the command line but not when run automatically is that there is no path (or a limited one) set for the 'auto user'. You must use full path to all the commands, though you appear to have mostly done that.

      Steve

      1 Reply Last reply Reply Quote 0
      • R
        raysantana
        last edited by Oct 20, 2012, 6:39 PM

        Hi!!

        If they don't use lcdexec what do they use? i mean if they are using an lCD display the coolest thing is being able to control you box with it.

        I just got this to work, it was actually a permission issue, the lcdexec.sh wasnt set to execute i just chmod it and it loads beautifully on boot.

        Thanks!!

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Oct 20, 2012, 6:43 PM

          I think most people, including me, are just happy to have the display working at all.  ;)
          Yes it is pretty cool being able to control the box from the display especially if you have embedded hardware with no VGA/keyboard console. Have a look a what Brak was doing. I'm not sure if he ever released his code but he used lcdexec to allow you to reboot the box, reset interfaces, a load of things.

          Steve

          1 Reply Last reply Reply Quote 0
          • R
            raysantana
            last edited by Oct 20, 2012, 6:49 PM

            Ok!

            Thanks for ur answers Steve, i hope this thread may help some other lost soul in the future.

            Yes, i copy my lcdexec.conf from some guy which i dont remember the name, but im able to reboot, shutdown, reset webgui, interfaces, etc.

            When im done with my box ill post pictures of the case.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received