summaryrefslogtreecommitdiff
path: root/sysutils/sensors-applet/files/smartctl-helper.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-04-11 12:42:45 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-04-11 12:42:45 +0000
commit2c8c6c8970972a7da5a3ee28fc61a52f90059c94 (patch)
treed0941216885b3e1a441f3cd818ed315d94f5893e /sysutils/sensors-applet/files/smartctl-helper.c
parentSupport stage (diff)
2014-04-10 deskutils/nautilus-locked-folder: nautilus will be updated to the 3.x version which is not compatible with 2.x
2014-04-10 www/screem: gnome-menus 2.x will be updated in the GNOME 3 import 2014-04-10 deskutils/nautilus-actions: nautilus will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 deskutils/nautilus-sendto: nautilus will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 deskutils/nautilus-open-terminal: nautilus will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 sysutils/eiciel: nautilus will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 sysutils/nautilus-cd-burner: nautilus will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 x11-fm/py-nautilus: nautilus will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 sysutils/sensors-applet: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 net/link-monitor-applet: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 net/netspeed_applet: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 net/remmina-applet: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 misc/uf-view: gnome-desktop 2.x will be updated in the GNOME 3 import 2014-04-10 textproc/uim-gnome: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 audio/istream: gnome-panel will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 mail/contact-lookup-applet: gnome-panel will be updated to the 3.x version which is not compatible with 2.x 2014-04-10 security/tuntun: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 misc/quick-lounge-applet: gnome-panel 2.x will be updated in the GNOME 3 import 2014-04-10 sysutils/bubblemon2: gnome-panel 2.x will be updated in the GNOME 3 import
Notes
Notes: svn path=/head/; revision=350933
Diffstat (limited to 'sysutils/sensors-applet/files/smartctl-helper.c')
-rw-r--r--sysutils/sensors-applet/files/smartctl-helper.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/sysutils/sensors-applet/files/smartctl-helper.c b/sysutils/sensors-applet/files/smartctl-helper.c
deleted file mode 100644
index fe9aa4a3e3c9..000000000000
--- a/sysutils/sensors-applet/files/smartctl-helper.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (C) 2006 Jean-Yves Lefort <jylefort@FreeBSD.org>
- *
- * This program 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 2 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-static void
-smartctl_helper_usage (void)
-{
- fprintf(stderr, "Usage: smartctl-helper enable|attributes DEVICE\n");
- exit(1);
-}
-
-int
-main (int argc, char **argv)
-{
- if (argc != 3)
- smartctl_helper_usage();
-
- if (! strcmp(argv[1], "enable"))
- {
- char *smartctl_argv[] = { "smartctl", "-s", "on", argv[2], NULL };
- execve(SMARTCTL, smartctl_argv, NULL);
- }
- else if (! strcmp(argv[1], "attributes"))
- {
- char *smartctl_argv[] = { "smartctl", "-A", argv[2], NULL };
- execve(SMARTCTL, smartctl_argv, NULL);
- }
- else
- smartctl_helper_usage();
-
- /* execve failed */
- fprintf(stderr, "Unable to execute %s\n", SMARTCTL);
- return 1;
-}