From 50218718a57b952ea88249a700f2b595c71acd86 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Tue, 13 Aug 2024 15:07:35 +0200 Subject: [PATCH] fix script --- src/pages/how-to/installation.mdx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/how-to/installation.mdx b/src/pages/how-to/installation.mdx index 2fdbbcd..af64548 100644 --- a/src/pages/how-to/installation.mdx +++ b/src/pages/how-to/installation.mdx @@ -183,12 +183,13 @@ curl -fsSL https://pkgs.netbird.io/install.sh | sh ``` For NetBird to work on Synology after a reboot, you need to run this script every time you reboot your NAS. To automate this process, you can create a scheduled task in the Synology DSM. -```bash + +```sh #!/bin/sh # Create the necessary file structure for /dev/net/tun -if ( [ ! -c /dev/net/tun ] ); then - if ( [ ! -d /dev/net ] ); then +if [ ! -c /dev/net/tun ]; then + if [ ! -d /dev/net ]; then mkdir -m 755 /dev/net fi mknod /dev/net/tun c 10 200 @@ -196,7 +197,7 @@ if ( [ ! -c /dev/net/tun ] ); then fi # Load the tun module if not already loaded -if ( !(lsmod | grep -q "^tun\s") ); then +if !(lsmod | grep -q "^tun\s"); then insmod /lib/modules/tun.ko fi ```