From: hschang Date: Wed, 12 Aug 2020 02:27:33 +0000 (+0900) Subject: [usbtunerhelper] fix line breask issue. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openvuplus_3.0;a=commitdiff_plain;h=a614fc25b904a06405f3cc53b5bbb890733f2d00 [usbtunerhelper] fix line breask issue. --- diff --git a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb index 23de067..79d16cd 100644 --- a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb +++ b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper.bb @@ -4,7 +4,7 @@ LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" PV = "1.0+git${SRCPV}" -PR = "r9" +PR = "r10" SRC_REV = "" SRC_URI = " \ diff --git a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/fix_delayed_loading.patch b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/fix_delayed_loading.patch index d03bc6a..8ddda43 100755 --- a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/fix_delayed_loading.patch +++ b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/fix_delayed_loading.patch @@ -1,34 +1,34 @@ -diff -Naur git.orig/usbtunerhelper.c git/usbtunerhelper.c ---- git.orig/usbtunerhelper.c 2015-11-04 20:03:46.000000000 +0100 -+++ git/usbtunerhelper.c 2015-11-04 20:04:16.200476304 +0100 -@@ -665,6 +665,7 @@ - int debug = 0; - int scan_inverval = 1; - int scan_count = 60; -+ char filename[] = "/tmp/.vtuner_available"; - - int option; - while ((option = getopt(argc, argv, "dh")) >= 0) -@@ -680,6 +681,12 @@ - } - } - -+ if ( (scan_adapters() > 0) && (!debug) ){ -+ FILE *fp; -+ fp=fopen(filename, "w+"); -+ fclose(fp); -+ } -+ - if (!debug) daemon_init(); - - signal(SIGTERM, sigint_handler); -@@ -700,6 +707,9 @@ - - available_vtuner = get_avail_vtuner(); - -+ int ret; -+ ret = remove(filename); -+ - for (i = 0; i < adaptercount; i++) - { - init_adapter(i); +diff -Naur git.orig/usbtunerhelper.c git/usbtunerhelper.c +--- git.orig/usbtunerhelper.c 2015-11-04 20:03:46.000000000 +0100 ++++ git/usbtunerhelper.c 2015-11-04 20:04:16.200476304 +0100 +@@ -665,6 +665,7 @@ + int debug = 0; + int scan_inverval = 1; + int scan_count = 60; ++ char filename[] = "/tmp/.vtuner_available"; + + int option; + while ((option = getopt(argc, argv, "dh")) >= 0) +@@ -680,6 +681,12 @@ + } + } + ++ if ( (scan_adapters() > 0) && (!debug) ){ ++ FILE *fp; ++ fp=fopen(filename, "w+"); ++ fclose(fp); ++ } ++ + if (!debug) daemon_init(); + + signal(SIGTERM, sigint_handler); +@@ -700,6 +707,9 @@ + + available_vtuner = get_avail_vtuner(); + ++ int ret; ++ ret = remove(filename); ++ + for (i = 0; i < adaptercount; i++) + { + init_adapter(i); diff --git a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/usbtunerhelper.sh b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/usbtunerhelper.sh index 3d3e620..8c4be0d 100644 --- a/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/usbtunerhelper.sh +++ b/meta-openvuplus/recipes-vuplus/usbtunerhelper/usbtunerhelper/usbtunerhelper.sh @@ -1,34 +1,34 @@ -#!/bin/sh - -if ! [ -x /usr/bin/usbtunerhelper ]; then - exit 0 -fi - -VTUNER_FILE="/tmp/.vtuner_available" - -case "$1" in - start) - start-stop-daemon -S -x /usr/bin/usbtunerhelper - if [ -f $VTUNER_FILE ] - then - echo "[USBTUNERHELPER] wait for initializing vtuner" - while [ ! -f $VTUNER_FILE ]; do - usleep 100000 - done - sleep 2 - fi - ;; - stop) - start-stop-daemon -K -x /usr/bin/usbtunerhelper - ;; - restart|reload) - $0 stop - $0 start - ;; - *) - echo "Usage: $0 {start|stop|restart}" - exit 1 - ;; -esac - -exit 0 +#!/bin/sh + +if ! [ -x /usr/bin/usbtunerhelper ]; then + exit 0 +fi + +VTUNER_FILE="/tmp/.vtuner_available" + +case "$1" in + start) + start-stop-daemon -S -x /usr/bin/usbtunerhelper + if [ -f $VTUNER_FILE ] + then + echo "[USBTUNERHELPER] wait for initializing vtuner" + while [ ! -f $VTUNER_FILE ]; do + usleep 100000 + done + sleep 2 + fi + ;; + stop) + start-stop-daemon -K -x /usr/bin/usbtunerhelper + ;; + restart|reload) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0