Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

extra initscript command to reset fan

  • Loading branch information...
commit 2c04273d031efb5b167126643acd19f2f8a53739 1 parent 456b688
Piotr Karbowski authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 app-laptop/dellfand/files/dellfand.init
View
11 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
+}
Please sign in to comment.
Something went wrong with that request. Please try again.