Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: [PATCH] don't install dvb_net.{sh,pl}



Ludwig Nussel wrote:
> 
> dvb_net.sh and dvb_net.sh get installed into $libdir/dvb. They
> contain IP addresses so I suppose one needs to edit them to be able
> to actually use them. Since editing non-config files is bad from a
> package's point of view I suggest to not install them (the current
> install target also breaks the scripts as it removes the blank in
> front of the first parameter).

Makes sense. do you plan to install them in .../doc/examples/?


> Index: dvb-apps/util/dvbnet/net_start.sh
> ===================================================================
> --- dvb-apps.orig/util/dvbnet/net_start.sh
> +++ dvb-apps/util/dvbnet/net_start.sh
> @@ -4,7 +4,7 @@
>  DEV_NAME=dvb0_0
>  IP_ADDR=10.1.1.1
>  
> -./dvbnet -p $PID
> +dvbnet -p $PID
>  
>  /sbin/ifconfig $DEV_NAME $IP_ADDR
>  
> Index: dvb-apps/util/dvbnet/net_start.pl
> ===================================================================
> --- dvb-apps.orig/util/dvbnet/net_start.pl
> +++ dvb-apps/util/dvbnet/net_start.pl
> @@ -12,7 +12,7 @@
>  {
>    local ($ADAPTER, $NETDEV, $PID, $IP_ADDR) = @_;
>  
> -  $DEV_NAME = `./dvbnet -a $ADAPTER -n $NETDEV -p $PID | grep created`;
> +  $DEV_NAME = `dvbnet -a $ADAPTER -n $NETDEV -p $PID | grep created`;
>    chop($DEV_NAME);
>  
>    $DEV_NAME =~ s/(.*)device //;


This would be inconvenient for CVS users. Besides, if you don't install
the scripts, why bother to remove the "./"?

Johannes




Home | Main Index | Thread Index