diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | paramano.c | 6 | ||||
-rw-r--r-- | paramano.h | 1 | ||||
-rw-r--r-- | reload.c | 36 | ||||
-rw-r--r-- | reload.h | 24 |
5 files changed, 0 insertions, 69 deletions
@@ -34,7 +34,6 @@ DEPS += bat_tray.h \ getfreq.h \ getgov.h \ paramano.h \ - reload.h \ tray.h \ paramano_set_interface.h @@ -97,7 +96,6 @@ paramano: bat_tray.o \ getcore.o \ getfreq.o \ getgov.o \ - reload.o \ paramano.o \ tray.o \ paramano_set_interface.o @@ -34,12 +34,6 @@ int main(int argc, char** argv) return 1; } - struct sigaction sig_act; - sig_act.sa_handler = reload_config; - sig_act.sa_flags = 0; - sigemptyset(&sig_act.sa_mask); - - sigaction(SIGUSR1, &sig_act, NULL); config_init(); gc_init(); gg_init(); @@ -36,7 +36,6 @@ #include "getcore.h" #include "getgov.h" #include "config_file.h" -#include "reload.h" #include "defaults.h" #include "common.h" #include "paramano_set_interface.h" diff --git a/reload.c b/reload.c deleted file mode 100644 index 07daf33..0000000 --- a/reload.c +++ /dev/null @@ -1,36 +0,0 @@ -/************************************************************************ - * This file is part of Paramano. * - * * - * Paramano is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of the * - * License, or (at your option) any later version. * - * * - * Paramano is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with Paramano. If not, see * - * <http://www.gnu.org/licenses/>. * - ************************************************************************/ - -#include "paramano.h" - - -/************************************************************************* - * Catches the USR1 sig. Reloads the configuration files and applies any - * new changes/config etc - ************************************************************************/ -void reload_config() -{ - // Reload config - config_init(); - - // Hide battery icon if told to - DEFAULT_SHOW_BATTERY? bat_tray_show() : bat_tray_hide(); - - // Update governor and frequency defaults - tray_set_defaults(); -} diff --git a/reload.h b/reload.h deleted file mode 100644 index 030147e..0000000 --- a/reload.h +++ /dev/null @@ -1,24 +0,0 @@ -/************************************************************************ - * This file is part of Paramano. * - * * - * Paramano is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of the * - * License, or (at your option) any later version. * - * * - * Paramano is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with Paramano. If not, see * - * <http://www.gnu.org/licenses/>. * - ************************************************************************/ - -#ifndef RELOAD_H -#define RELOAD_H - -void reload_config(); - -#endif |