Skip to content

Commit

Permalink
unify systemd and Upstart package
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed May 8, 2016
1 parent b5de882 commit f599cda
Show file tree
Hide file tree
Showing 30 changed files with 41 additions and 197 deletions.
10 changes: 0 additions & 10 deletions buid.sh

This file was deleted.

11 changes: 11 additions & 0 deletions package-ubuntu-vivid/debian/changelog → debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
init-headphone (0.11.0) stable;

* show error message if library not found
* improve logging
* show active default effect in help
* hide --force argument
* try to load missing kernel modules
* unify systemd and Upstart package

-- Unrud <unrud@openaliasbox.org> Sun, 08 May 2016 09:32:21 +0200

init-headphone (0.10.0-vivid) stable;

* recognize more i2c bus names
Expand Down
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
4 changes: 2 additions & 2 deletions package-ubuntu-vivid/debian/control → debian/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Source: init-headphone
Maintainer: Unrud <unrud@openaliasbox.org>
Build-Depends: debhelper (>= 9), dh-systemd

Package: init-headphone
Architecture: all
Priority: optional
Depends: python
Depends: ${misc:Depends}, python:any
Description: Manage the headphone amplifier found in some Clevo laptops
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions debian/init-headphone.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/init-headphone /usr/sbin/
debian/etc/grub/init-headphone.cfg /etc/default/grub.d/
debian/etc/pm-utils/99init-headphone usr/lib/pm-utils/sleep.d/
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/sh

set -e

NOTIFIER="/usr/share/update-notifier/notify-reboot-required"

case "${1:-}" in
case "$1" in
configure|reconfigure)
if type update-grub; then
update-grub || true
Expand All @@ -11,6 +13,8 @@ case "${1:-}" in
"$NOTIFIER" || true
fi
;;

*) :;;
esac

#DEBHELPER#

exit 0
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/sh

case "${1:-}" in
set -e

case "$1" in
remove)
if type update-grub; then
update-grub || true
fi
;;

*) :;;
esac

#DEBHELPER#

exit 0
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Enable headphone jack on Clevo W230SS after suspend
Description=Initialize headphone amplifier found in some Clevo laptops
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target
Expand Down
5 changes: 5 additions & 0 deletions debian/init-headphone.upstart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description "Initialize headphone amplifier found in some Clevo laptops"

start on runlevel [2345]

exec /usr/sbin/init-headphone
4 changes: 4 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/make -f

%:
dh $@ --with systemd
16 changes: 0 additions & 16 deletions package-ubuntu-trusty/build.sh

This file was deleted.

60 changes: 0 additions & 60 deletions package-ubuntu-trusty/debian/changelog

This file was deleted.

8 changes: 0 additions & 8 deletions package-ubuntu-trusty/debian/control

This file was deleted.

5 changes: 0 additions & 5 deletions package-ubuntu-trusty/debian/init-headphone.install

This file was deleted.

8 changes: 0 additions & 8 deletions package-ubuntu-trusty/debian/rules

This file was deleted.

3 changes: 0 additions & 3 deletions package-ubuntu-trusty/init/init-headphone.conf

This file was deleted.

2 changes: 0 additions & 2 deletions package-ubuntu-trusty/modules-load/init-headphone.conf

This file was deleted.

16 changes: 0 additions & 16 deletions package-ubuntu-vivid/build.sh

This file was deleted.

5 changes: 0 additions & 5 deletions package-ubuntu-vivid/debian/init-headphone.install

This file was deleted.

22 changes: 0 additions & 22 deletions package-ubuntu-vivid/debian/init-headphone.postinst

This file was deleted.

18 changes: 0 additions & 18 deletions package-ubuntu-vivid/debian/init-headphone.postrm

This file was deleted.

8 changes: 0 additions & 8 deletions package-ubuntu-vivid/debian/rules

This file was deleted.

1 change: 0 additions & 1 deletion package-ubuntu-vivid/grub/init-headphone.cfg

This file was deleted.

2 changes: 0 additions & 2 deletions package-ubuntu-vivid/modules-load/init-headphone.conf

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit f599cda

Please sign in to comment.