From d2df6b316e4247f9e17b619da7cde4847908e445 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Tue, 26 Nov 2013 21:13:30 +0100 Subject: [PATCH] ftpfct mod and some other things --- Utils/ftpfct.sh | 10 ++++++++++ install.sh | 1 + vim/skeletons/skel.php | 5 ++--- xinitrc | 1 + 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Utils/ftpfct.sh b/Utils/ftpfct.sh index 72566c3..f46eaa3 100755 --- a/Utils/ftpfct.sh +++ b/Utils/ftpfct.sh @@ -13,6 +13,13 @@ function set_fan echo "level $1" | sudo tee $FANFILE > /dev/null } +function finish +{ + set_fan full-speed +} + +trap finish EXIT + while true; do TEMP=$($ACPI | grep degrees | grep -v critical | cut -d' ' -f4) @@ -32,6 +39,9 @@ while true; do set_fan 1 echo "lt 56" elif [ $TEMP -lt 66 ]; then + set_fan 2 + echo "lt 66" + elif [ $TEMP -lt 70 ]; then set_fan 5 echo "lt 66" else diff --git a/install.sh b/install.sh index 53c8bc9..0224562 100755 --- a/install.sh +++ b/install.sh @@ -89,6 +89,7 @@ WAI=`pwd` #simple files cd ~ +ln -s ~/Programmation/dotfiles/Utils/ .my_utils ln -s $WAI/bashrc ./.bashrc ln -s $WAI/bash_ps1 ./.bash_ps1 diff --git a/vim/skeletons/skel.php b/vim/skeletons/skel.php index 58e9ce0..031b625 100644 --- a/vim/skeletons/skel.php +++ b/vim/skeletons/skel.php @@ -4,9 +4,8 @@ ** ** Author: Frank Villaro-Dixon ** Description: <+DESC+> -** -** vim: set ts=4 sw=4 noet: */ <+CODE+> -?> + +/* vim: set ts=4 sw=4 noet: */ diff --git a/xinitrc b/xinitrc index 4ccde06..126169b 100644 --- a/xinitrc +++ b/xinitrc @@ -32,6 +32,7 @@ setxkbmap -model pc104 -layout ch -variant fr -option compose:lwin $OCTOPUS init-all 1>&2 /dev/shm/Octopus_logs & $OCTOPUS init-wifi 1>&2 /dev/shm/Octopus_logs & +ftpfct.sh >/dev/null & while true; do $OCTOPUS refresh