wok-next diff get-softmodem-driver/stuff/martian.receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 4aed2b24febc
children
line diff
     1.1 --- a/get-softmodem-driver/stuff/martian.receipt	Thu Nov 08 09:35:38 2012 +0100
     1.2 +++ b/get-softmodem-driver/stuff/martian.receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -4,23 +4,22 @@
     1.4  VERSION="full-20080617"
     1.5  CATEGORY="non-free"
     1.6  SHORT_DESC="Driver for the Agere Systems PCI Modem built on DSP 164x (Mars) series."
     1.7 -MAINTAINER="domcox@slitaz.org"
     1.8 +MAINTAINER="devel@slitaz.org"
     1.9 +WEB_SITE="http://martian.barrelsoutofbond.org"
    1.10 +
    1.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 -DEPENDS="module-init-tools linux-source"
    1.13 -WEB_SITE="http://martian.barrelsoutofbond.org"
    1.14  WGET_URL="http://www.barrelsoutofbond.org/downloads/$PACKAGE/$TARBALL"
    1.15  
    1.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +DEPENDS="module-init-tools linux-source"
    1.18  
    1.19 -post_install()
    1.20 -{
    1.21 +post_install() {
    1.22  	# Country settings
    1.23  	if [ -e /etc/TZ ]; then
    1.24 -		ZONE=`cat /etc/TZ`
    1.25 -		CODE=`grep $ZONE /usr/share/martian/zone.tab | cut -f1'`
    1.26 +		ZONE=$(cat /etc/TZ)
    1.27 +		CODE=$(grep $ZONE /usr/share/martian/zone.tab | cut -f1)
    1.28  		if [ -n $CODE ]; then
    1.29 -			COUNTRY=`grep ^$CODE /usr/share/martian/martian.country | cut -f2`
    1.30 -			COUNTRY_NAME=`grep ^$CODE /usr/share/martian/martian.country | cut -f3`
    1.31 +			COUNTRY=$(grep ^$CODE /usr/share/martian/martian.country | cut -f2)
    1.32 +			COUNTRY_NAME=$(grep ^$CODE /usr/share/martian/martian.country | cut -f3)
    1.33  		fi
    1.34  	fi
    1.35  	if [ -z $COUNTRY ]; then
    1.36 @@ -29,21 +28,20 @@
    1.37  	fi
    1.38  	echo "Automatic country setting: $COUNTRY_NAME"
    1.39  	# Save options
    1.40 -	if [ `grep -c MARTIAN_OPTIONS /etc/daemons.conf` -gt 0 ]; then
    1.41 +	if [ $(grep -c MARTIAN_OPTIONS /etc/daemons.conf) -gt 0 ]; then
    1.42  		sed -i 's/MARTIAN_OPTIONS=.*/MARTIAN_OPTIONS="--country='"$COUNTRY"' \/dev\/ttySM0"/' /etc/daemons.conf
    1.43  	else
    1.44 -	echo "# slmodemd daemon options." >> $root/etc/daemons.conf
    1.45 +		echo "# slmodemd daemon options." >> $root/etc/daemons.conf
    1.46  		echo "MARTIAN_OPTIONS=\"--country=$COUNTRY /dev/ttySM0\"" >> $root/etc/daemons.conf
    1.47  		echo  >> $root/etc/daemons.conf
    1.48  	fi
    1.49  	# Load module
    1.50  	/sbin/depmod -a
    1.51 -	/sbin/modprobe martian_dev && \
    1.52 +	/sbin/modprobe martian_dev &&
    1.53  	/etc/init.d/martian start
    1.54  }
    1.55  
    1.56 -post_remove()
    1.57 -{
    1.58 +post_remove() {
    1.59  	/etc/init.d/martian stop
    1.60  	rm -rf /usr/share/martian
    1.61  }