From 542d06e5e087e122d20c8d69fdec616544860556 Mon Sep 17 00:00:00 2001 From: Magnus Stubman Date: Tue, 31 Jul 2012 18:54:18 +0200 Subject: [PATCH 1/3] Added Gentoo init file --- mbpfan.init.gentoo | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 mbpfan.init.gentoo diff --git a/mbpfan.init.gentoo b/mbpfan.init.gentoo new file mode 100755 index 0000000..30a35ea --- /dev/null +++ b/mbpfan.init.gentoo @@ -0,0 +1,18 @@ +#!/sbin/runscript + +depend() { + use logger +} + +start() { + ebegin "Starting mbpfan" + start-stop-daemon --start --quiet --exec /usr/sbin/mbpfan + eend $? +} + +stop() { + ebegin "Stopping mbpfan" + start-stop-daemon --stop --quiet --exec /usr/sbin/mbpfan + eend $? +} + From 94d7b35c0ac0594317773fefd553dd2386b2c534 Mon Sep 17 00:00:00 2001 From: Magnus Stubman Date: Tue, 31 Jul 2012 19:04:57 +0200 Subject: [PATCH 2/3] added gentoo init hint in Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 073f4fb..841b1f0 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,10 @@ install: @echo "systemctl start mbpfan.service" @echo "To start the service automatically at boot, also execute the following:" @echo "systemctl enable mbpfan.service" + @echo "" + @echo "An init file is available for gentoo users: mbpfan.init.gentoo" + @echo "To install, run # cp mbpfan.init.gentoo /etc/init.d/mbpfan" + @echo "To automatically run mbpfan at boot, run # rc-update add mbpfan default" @echo "-----------------------------------------------------------------------------" rebuild: clean all From a895bff912439caf375e55c90c0cb6ad32525db1 Mon Sep 17 00:00:00 2001 From: Magnus Stubman Date: Tue, 31 Jul 2012 19:09:20 +0200 Subject: [PATCH 3/3] Altered README.md for Gentoo init usage --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c6df88..f0d75ff 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Fan-Control-Daemon Introduction --------------------- -This is an enhanced version of [rvega's Fan-Control-Daemon](https://github.com/rvega/Fan-Control-Daemon), +This is an enhanced version of [CeRiAl's Fan-Control-Daemon](https://github.com/CeRiAl/Fan-Control-Daemon), which itself is an enhanced version of [rvega's Fan-Control-Daemon](https://github.com/rvega/Fan-Control-Daemon), which itself is an enhanced version of [Allan McRae mbpfan](http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon/) Fan-Control-Daemon is a daemon that uses input from coretemp module and sets the fan speed using the applesmc module. @@ -49,6 +49,10 @@ Then, add it to the default runlevels with sudo update-rc.d mbpfan defaults (Ubu An init file suitable for Fedora (and probably RedHat) can be found in the file mbpfan.init.fedora +An init file is available for gentoo users: mbpfan.init.gentoo +To install, run # cp mbpfan.init.gentoo /etc/init.d/mbpfan +To automatically run mbpfan at boot, run # rc-update add mbpfan default + Run Instructions ---------------------