From 2c31e747d162a0b24dddd12887721c27b41d086d Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sat, 11 Feb 2023 15:56:19 -0500
Subject: linhes-system: udev_link.sh: change some formatting

---
 linhes/linhes-system/PKGBUILD     |  4 ++--
 linhes/linhes-system/udev_link.sh | 12 +++++++-----
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index 59a45d0..28fe77a 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=linhes-system
 pkgver=9.0.0
-pkgrel=39
+pkgrel=40
 arch=('x86_64')
 #install=$pkgname.install
 pkgdesc="Everything that makes LinHES a system"
@@ -48,7 +48,7 @@ sha256sums=('525bfe29b63d3ec5a17a32fa29745e24070020490c3f5b6dd6b03250348fb324'
             '51093acab5e5a4de51a55f4bdf7b935f4f69edf3d84f1c37db710853ec95eca8'
             '9ea1b5583cd38f53bb79d9e4ccae91a028db0b6850162d7991b19122c564b9c9'
             'a81fdb81d8890e73b7891756623d536a133410ea43205b7152a295ad9ab8f3c9'
-            'ab13f06566d07637c4d221b1afa888b7da458c0adc95db4b9ec5f2798a50ebdc'
+            '6bdbf593d3e1348d1a8f7c4c17cb2e893f7e18ae355daf978173e669cfe3be80'
             '9e97b4d68c9e8988daacadd40f1de9f0b5945d870eba596a2ceb5e0c023fa9c0'
             '186203d3c0520bb3d611da99d33a7713e9c1563814285f1f101097234f214b2f'
             'd8d36a501928d0cc505957d392291fad317b1e895ff99847d90643cf5f622a89'
diff --git a/linhes/linhes-system/udev_link.sh b/linhes/linhes-system/udev_link.sh
index 7189f06..45038e9 100755
--- a/linhes/linhes-system/udev_link.sh
+++ b/linhes/linhes-system/udev_link.sh
@@ -5,7 +5,6 @@ dev_name=$2
 #DVB_ADAPTER_NUM=2
 
 lndir=`dirname $dev_name`
-#for clink in `ls -d /dev/vstatic/dvb*`
 for clink in `ls -d /dev/dvb/adapter_*`
 do
    if [ `readlink $clink` == $lndir ]
@@ -13,19 +12,22 @@ do
        echo "link is already present $clink"
        exit 0
    fi
-
 done
 mkdir -p /dev/vstatic
 for i in 1 2 3 4
 do
-    #mydir="/dev/vstatic/${my_base}_$i"
-    mydir="/dev/dvb/adapter_static_${my_base}_$i"
+    if [ $i -eq 1 ]
+    then
+        mydir="/dev/dvb/adapter_${my_base}"
+    else
+        mydir="/dev/dvb/adapter_${my_base}-$i"
+    fi
     if [ ! -e $mydir ]
     then
         ln -s $lndir  $mydir
         exit 0
     else
-        echo "dvb dir already exists "
+        echo "dvb $mydir already exists"
     fi
 done
 exit 0
-- 
cgit v0.12

