Jump to content


Photo

ZeroTier on Openpli


  • Please log in to reply
22 replies to this topic

Re: ZeroTier on Openpli #21 oldgraf

  • Senior Member
  • 25 posts

+1
Neutral

Posted 24 September 2019 - 09:15

I can't figure out what samba has to do with startup

#!/bin/sh

DAEMON="/usr/sbin/zerotier-one"
prog=`basename $DAEMON`
MODULE="tun"
PIDFILE="/var/lib/zerotier-one/zerotier-one.pid"

test -e $DAEMON || exit 0

 

case "$1" in
  start)
    if [ -d /var/lib/samba/msg.lock ]; then
        rm -rf /var/lib/samba/msg.lock
    fi
    echo -n "Starting $prog"

    # Make sure kernel module is loaded
    if ! grep -q $MODULE /proc/filesystems
    then
        # Try load the kernel module fail if we can't
        modprobe $MODULE >/dev/null 2>&1
        if [ $? -eq 1 ]
        then
            echo "Error: failed to load $MODULE module."
            return 1
        fi
    fi

    start-stop-daemon --start --quiet --background --exec $DAEMON
    echo "."
    ;;


Edited by oldgraf, 24 September 2019 - 09:16.


Re: ZeroTier on Openpli #22 possibly2

  • Member
  • 10 posts

+1
Neutral

Posted 14 October 2019 - 08:51

I can't figure out what samba has to do with startup

 

 

Ups, copy/paste issue.. Should have been removed, thanks for noticing.. :-)

 

Attached recipe with updated startup script.

 

Rgds

P



Re: ZeroTier on Openpli #23 Taykun345

  • Senior Member
  • 1,167 posts

+31
Good

Posted 14 October 2019 - 12:37

Attachment is missing


Army MoodBlue HD skin modification by me: https://github.com/T...-MoodBlueHD-mod
Matrix10 MH-HD2 skin modification by me: https://github.com/B...-MX-HD2-OpenPli
MetrixHD skin modification by me: https://github.com/T...xHD-WPstyle-mod
Slovenian translation for OpenPLi E2: https://github.com/T...ion-for-OpenPLi




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users