From 1df8fb5d5d7790e8bc24e90f174a0d7bc6ba30e9 Mon Sep 17 00:00:00 2001 From: dschmenk Date: Wed, 18 Nov 2015 11:27:27 -0800 Subject: [PATCH] Jessie compatible package --- Makefile | 2 +- debian/changelog | 6 ++++++ debian/postinst | 24 +++++++++++++----------- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 1870db3..23615be 100755 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGE=a2pi -VERSION=0.2.0 +VERSION=0.2.1 DIST=$(PACKAGE)-$(VERSION) DISTDIR=./$(DIST) diff --git a/debian/changelog b/debian/changelog index 3131a21..1b63430 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +a2pi (0.2.1-0) unstable; urgency=low + + * First Jessie package + + -- David Schmenk Tue, 17 Nov 2015 19:27:59 -0800 + a2pi (0.2.0-2) unstable; urgency=low * Add support for Raspberry Pi version 2 diff --git a/debian/postinst b/debian/postinst index b726787..55b8a97 100755 --- a/debian/postinst +++ b/debian/postinst @@ -30,15 +30,17 @@ case "$1" in # # Disable getty on built-in serial port. # - ttyline=`grep ttyAMA0 /etc/inittab` - case "$ttyline" in - T0*) - mv /etc/inittab /etc/inittab.bak - sed 's/^T0/#T0/' /etc/inittab.bak > /etc/inittab - ;; - *) - ;; - esac + if [ -e /etc/inittab ] ; then + ttyline=`grep ttyAMA0 /etc/inittab` + case "$ttyline" in + T0*) + mv /etc/inittab /etc/inittab.bak + sed 's/^T0/#T0/' /etc/inittab.bak > /etc/inittab + ;; + *) + ;; + esac + fi # # Disable joystick as a mouse in X # @@ -48,7 +50,7 @@ case "$1" in # # Add default Pi user,pi, to groups fuse and input # - addgroup pi fuse + # addgroup pi fuse # addgroup pi input # already there by default # # Allow other users (root) to access FUSE mount points @@ -76,7 +78,7 @@ case "$1" in # Add schmenk.is-a-geek.com to apt sources # if [ "$(grep schmenk /etc/apt/sources.list)" = "" ] ; then - echo "deb http://schmenk.is-a-geek.com/raspbian wheezy contrib" >> /etc/apt/sources.list + echo "deb http://schmenk.is-a-geek.com/raspbian jessie contrib" >> /etc/apt/sources.list fi # # Remove old install