Jump to content

tiamat

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  1. Thx Dirk, your instructions helped me to run tvheadend on my Orange Pi, however it seems that your init.d script is not completed. Let me show show here updated version of your script: #!/bin/bash ### BEGIN INIT INFO # Provides: tvheadend # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Should-Start: $syslog # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 # Short-Description: start/stop tvheadend Server ### END INIT INFO TVHNAME="tvheadend" TVHBIN="/usr/local/bin/tvheadend" TVHUSER="tvheadend" TVHGROUP="tvheadend" PIDFILE=/var/run/$TVHNAME.pid . /lib/lsb/init-functions start() { if [ -e $PIDFILE ]; then PID=$(ps ax | grep -v grep | grep -w $(cat $PIDFILE) | awk '{print $1}') if [ -n "$PID" ]; then echo "$TVHNAME already running (pid $PID)." exit 1 fi fi echo -n "Starting tvheadend: " start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --user ${TVHUSER} --exec ${TVHBIN} -- \ -u ${TVHUSER} -g ${TVHGROUP} -f -C echo "Done." } stop() { if [ -e $PIDFILE ]; then PID=$(ps ax | grep -v grep | grep -w $(cat $PIDFILE) | awk '{print $1}') if [ -n "$PID" ]; then echo -n "Stopping $TVHNAME: " start-stop-daemon --stop --quiet --pidfile $PIDFILE --name ${TVHNAME} echo "Done." else echo "$TVHNAME is not running." fi else echo "$TVHNAME is not running." fi } status() { if [ -e $PIDFILE ]; then PID=$(ps ax | grep -v grep | grep -w $(cat $PIDFILE) | awk '{print $1}') if [ -n "$PID" ]; then echo "$TVHNAME is running (pid $PID)." else echo "$TVHNAME is not running." [ -e $PIDFILE ] && exit 1 || exit 3 fi fi } case "$1" in start) start ;; stop) stop ;; status) status ;; restart|reload|force-reload) stop sleep 2 start ;; *) log_warning_msg "Usage: $0 {start|stop|status|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0
  2. @Kimberly Did you solve your problem? I'm also struggling with initial gpio mode and state. Is it possible to easily set those settings without modifications of script.bin or dtb file? In my case my Banana Pro controls light relays and after, eg. power outage the gpio's gets default settings, which leads to incorrect relays state. Currently I'm storing gpio state and mode in some file and restore it on boot in rc.local, but it is not the best solution since invalid relay state persist for about 1 minute (until boot process reach rc.local script). This is really annoying especially in the night when eg. at 2:00 AM, lights in my bedroom turns on
  3. Just for people who need such info: in latests Armbian you can find armbian specific info in following file /etc/armbian-release
  4. Hi I would like to add Armbian version to banner after login (eg. v5.10) to be sure that I'm using latest version. Is this value stored somewhere in the filesystem? I already checked: /proc/version /etc/debian_version /etc/os-release but it's not there. I found it in /etc/armbian.txt but this is plain text file and parsing it to fetch the value is a little overkill. Is there a better place where I can find it?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines