Permalink
Browse files

extra initscript command to reset fan

  • Loading branch information...
1 parent 456b688 commit 2c04273d031efb5b167126643acd19f2f8a53739 Piotr Karbowski committed May 7, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 app-laptop/dellfand/files/dellfand.init
@@ -1,4 +1,5 @@
#!/sbin/runscript
+extra_commands='reset'
pidfile='/var/run/dellfand.pid'
@@ -9,4 +10,14 @@ start() {
eend $?
}
+reset() {
+ ebegin "Reseting fan state"
+ stop
+ /usr/sbin/dellfand 0 1 25 25 25 >/dev/null 2>&1 &
+ reset_pid="$!"
+ sleep 3
+ kill "$reset_pid"
+ eend $?
+ start
+}

0 comments on commit 2c04273

Please sign in to comment.