From 75c0000d847834273a00a12f6fc5a3f6e6e6270f Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 23 Mar 2014 14:15:52 +0100 Subject: [PATCH 1/1] Load cuse module via module-load.d On branch master Changes not staged for commit: deleted: debian/osspd.conf Untracked files: debian/osspd.kmod no changes added to commit (use "git add" and/or "git commit -a") --- debian/changelog | 6 ++++++ debian/osspd.init | 1 - debian/osspd.kmod | 2 ++ debian/osspd.service | 1 - debian/rules | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 debian/osspd.kmod diff --git a/debian/changelog b/debian/changelog index b46f617..9557027 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +osspd (1.3.2-6) UNRELEASED; urgency=medium + + * Load cuse module via module-load.d + + -- Ralf Jung Sun, 23 Mar 2014 14:14:43 +0100 + osspd (1.3.2-5) unstable; urgency=low * Fix systemd service file. diff --git a/debian/osspd.init b/debian/osspd.init index 77922b6..8669c76 100644 --- a/debian/osspd.init +++ b/debian/osspd.init @@ -32,7 +32,6 @@ SCRIPTNAME=/etc/init.d/$NAME # do_start() { - modprobe cuse # make sure the cuse module is loaded # Return # 0 if daemon has been started # 1 if daemon was already running diff --git a/debian/osspd.kmod b/debian/osspd.kmod new file mode 100644 index 0000000..e1bacaf --- /dev/null +++ b/debian/osspd.kmod @@ -0,0 +1,2 @@ +# Load cuse module for osspd +cuse diff --git a/debian/osspd.service b/debian/osspd.service index 5d76828..1105290 100644 --- a/debian/osspd.service +++ b/debian/osspd.service @@ -2,7 +2,6 @@ Description=OSS Proxy Daemon [Service] -ExecStartPre=/sbin/modprobe cuse ExecStart=/usr/sbin/osspd -f --dsp-slave=/usr/lib/osspd/ossp-slave [Install] diff --git a/debian/rules b/debian/rules index 80bfd48..08a8973 100755 --- a/debian/rules +++ b/debian/rules @@ -22,6 +22,8 @@ override_dh_installdocs: override_dh_install: dh_install --fail-missing + # adding kmod integration + install -D -m 0644 debian/osspd.kmod debian/osspd/lib/modules-load.d/osspd.conf # Disable tests, they require running the osspd override_dh_auto_test: -- 2.30.2