Projet

Général

Profil

Révision 2e3f5acd

ID2e3f5acd9af4967f5dcd9b2a0da4b53b85c8100c
Parent 5061ef1d
Enfant 55b983f3

Ajouté par Lars Kruse il y a environ 5 ans

Plugin battery_: convert documentation to perlpod format

Voir les différences:

plugins/battery/battery_
1 1
#! /bin/sh
2
# Plugin to monitor the battery status via the uevent API
3
#
4
# (c) 2015 - GPLv2 - steve.schnepp@pwkf.org
5
#
6
# It is a wildcard plugin, symlink it with the battery directory
7
# default is to display charge as mAh, but you can also use percentage if you
8
# prefer, by setting the env var "percent" to "yes".
9
#
10
# [battery_*]
11
# env.percent no
12
#
2

  
3
: <<=cut
4

  
5
=head1 NAME
6

  
7
battery_ - monitor battery status via the uevent API
8

  
9

  
10
=head1 CONFIGURATION
11

  
12
It is a wildcard plugin, symlink it into the plugins directory.
13

  
14
 [battery_*]
15
 env.percent no
16

  
17
By default the charge current is displayed as mAh, but you can also use percentage if you
18
prefer, by setting the environment variable "percent" to "yes".
19

  
20

  
21
=head1 AUTHORS
22

  
23
Copyright 2015 Steve Schnepp <steve.schnepp@pwkf.org>
24

  
25

  
26
=head1 LICENSE
27

  
28
GNU Library General Public License v2 only
29

  
30
SPDX-License-Identifier: GPL-2.0-only
31

  
32
=cut
13 33

  
14 34
battery_name=${0##*_}
15 35
percent=${percent:-"no"}

Formats disponibles : Unified diff