aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-02-12 17:18:04 +0100
committerRobert Alessi <alessi@robertalessi.net>2021-02-12 17:18:04 +0100
commit5169db7e24f80ee2e35aa747ef646dee2a7417fd (patch)
tree87e8f4c31e612c4add05aec3d543702f59d7bbbd
parentd82d2bcb18236daba4bf3110a67dff5639dbc768 (diff)
downloadmy-x200-5169db7e24f80ee2e35aa747ef646dee2a7417fd.tar.gz
allow my-x200 to be configured by means of .conf files in /etc/default/my-x200.d/
-rw-r--r--README.md6
-rw-r--r--about.html1
-rw-r--r--my-x200.confd6
-rw-r--r--my-x200.initd13
-rw-r--r--my-x200_0.6-2.dsc34
-rw-r--r--my-x200_0.6-2_amd64.debbin4668 -> 4880 bytes
-rw-r--r--my-x200_0.6.orig.tar.gzbin433766 -> 3359469 bytes
7 files changed, 43 insertions, 17 deletions
diff --git a/README.md b/README.md
index c4f2bc5..9920587 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,12 @@ Configuration
40Once installed, `my-x200` is configured by editing 40Once installed, `my-x200` is configured by editing
41[`/etc/default/my-x200`](http://git.robertalessi.net/my-x200/tree/my-x200.confd). 41[`/etc/default/my-x200`](http://git.robertalessi.net/my-x200/tree/my-x200.confd).
42 42
43It is also possible to leave `/etc/default/my-200` untouched. In this
44case, `my-x200` can source its configuration from one or more `*.conf`
45files written in a specific directory `/etc/default/my-x200.d/` which
46is to be created. This is the recommended method for these files
47cannot be affected by subsequent updates.
48
43Noise Removal 49Noise Removal
44------------- 50-------------
45Set the variable `is_thinkpad_x200` to `yes` (which is the default 51Set the variable `is_thinkpad_x200` to `yes` (which is the default
diff --git a/about.html b/about.html
index 7c87376..074f5da 100644
--- a/about.html
+++ b/about.html
@@ -29,6 +29,7 @@
29<p>It is written to be used on <a href="https://www.devuan.org/">Devuan GNU+Linux</a> but it should work on other Debian-based distributions.</p> 29<p>It is written to be used on <a href="https://www.devuan.org/">Devuan GNU+Linux</a> but it should work on other Debian-based distributions.</p>
30<h2 id="configuration">Configuration</h2> 30<h2 id="configuration">Configuration</h2>
31<p>Once installed, <code>my-x200</code> is configured by editing <a href="http://git.robertalessi.net/my-x200/tree/my-x200.confd"><code>/etc/default/my-x200</code></a>.</p> 31<p>Once installed, <code>my-x200</code> is configured by editing <a href="http://git.robertalessi.net/my-x200/tree/my-x200.confd"><code>/etc/default/my-x200</code></a>.</p>
32<p>It is also possible to leave <code>/etc/default/my-200</code> untouched. In this case, <code>my-x200</code> can source its configuration from one or more <code>*.conf</code> files written in a specific directory <code>/etc/default/my-x200.d/</code> which is to be created. This is the recommended method for these files cannot be affected by subsequent updates.</p>
32<h2 id="noise-removal">Noise Removal</h2> 33<h2 id="noise-removal">Noise Removal</h2>
33<p>Set the variable <code>is_thinkpad_x200</code> to <code>yes</code> (which is the default value). The default frequency rate should work. It may be changed by modifying the value of <code>PWMFREQ_RATE</code>.</p> 34<p>Set the variable <code>is_thinkpad_x200</code> to <code>yes</code> (which is the default value). The default frequency rate should work. It may be changed by modifying the value of <code>PWMFREQ_RATE</code>.</p>
34<h2 id="privacy-settings">Privacy Settings</h2> 35<h2 id="privacy-settings">Privacy Settings</h2>
diff --git a/my-x200.confd b/my-x200.confd
index 74b941e..ae9606e 100644
--- a/my-x200.confd
+++ b/my-x200.confd
@@ -1,5 +1,11 @@
1# /etc/default/my-x200: config file for /etc/init.d/my-x200 1# /etc/default/my-x200: config file for /etc/init.d/my-x200
2 2
3# It is also possible to leave this file untouched. In this case,
4# `my-x200` can source its configuration from one or more `*.conf`
5# files written in a specific directory `/etc/default/my-x200.d/`
6# which is to be created. This is the recommended method for these
7# files cannot be affected by subsequent updates.
8
3######################################### 9#########################################
4# Options to pass to the my-x200 daemon # 10# Options to pass to the my-x200 daemon #
5######################################### 11#########################################
diff --git a/my-x200.initd b/my-x200.initd
index 545a778..01040da 100644
--- a/my-x200.initd
+++ b/my-x200.initd
@@ -24,12 +24,25 @@ NAME=my-x200
24# Read configuration variable file if it is present 24# Read configuration variable file if it is present
25[ -r /etc/default/$NAME ] && . /etc/default/$NAME 25[ -r /etc/default/$NAME ] && . /etc/default/$NAME
26 26
27# Read additional configuration files in /etc/default/my-x200.d/
28confdir="/etc/default/my-x200.d"
29
30if [ -d "$confdir" ] && [ -f "$confdir"/*.conf ]
31then
32 for file in "$confdir"/*.conf
33 do
34 . "$file"
35 done
36fi
37
38# Get my-x200 variables
27x200_cmdfreq="/usr/bin/intel_reg" 39x200_cmdfreq="/usr/bin/intel_reg"
28pwmfreq="${PWMFREQ_RATE}" 40pwmfreq="${PWMFREQ_RATE}"
29x200_cmdfreq_args="write 0x00061254 $pwmfreq" 41x200_cmdfreq_args="write 0x00061254 $pwmfreq"
30autobackup="${conf_autobackup}" 42autobackup="${conf_autobackup}"
31backup_path="${conf_backup_path}" 43backup_path="${conf_backup_path}"
32control_file="${conf_control_file}" 44control_file="${conf_control_file}"
45
33if [ "$use_rsnapshot" = "true" ] 46if [ "$use_rsnapshot" = "true" ]
34then 47then
35 backup_cmd="/usr/bin/rsnapshot" 48 backup_cmd="/usr/bin/rsnapshot"
diff --git a/my-x200_0.6-2.dsc b/my-x200_0.6-2.dsc
index 4e99861..2921f39 100644
--- a/my-x200_0.6-2.dsc
+++ b/my-x200_0.6-2.dsc
@@ -13,29 +13,29 @@ Build-Depends: debhelper (>= 10)
13Package-List: 13Package-List:
14 my-x200 deb misc optional arch=any 14 my-x200 deb misc optional arch=any
15Checksums-Sha1: 15Checksums-Sha1:
16 3c535b0285cbef96b9ee377e4e9478770e3005b0 433766 my-x200_0.6.orig.tar.gz 16 46dd490aa2c55c30780c8ff941ddc293c2ab5962 3359469 my-x200_0.6.orig.tar.gz
17 fc77b94ca453b12a16eb2e8e5dd80387fc5f3dfe 1436 my-x200_0.6-2.debian.tar.xz 17 fc77b94ca453b12a16eb2e8e5dd80387fc5f3dfe 1436 my-x200_0.6-2.debian.tar.xz
18Checksums-Sha256: 18Checksums-Sha256:
19 e2a405be1d396fb9d71cc0a16831fc1dd9ba87eb71c6fa496daa62392532bb38 433766 my-x200_0.6.orig.tar.gz 19 31ea7ae4ec7df28ce5a5ce498be6a721590b0b26f315ab6261dba7145fa8ce77 3359469 my-x200_0.6.orig.tar.gz
20 38371a1002c278d147ec5a3383c201ab15178cd749f5c7ab49df889d6c63a78a 1436 my-x200_0.6-2.debian.tar.xz 20 38371a1002c278d147ec5a3383c201ab15178cd749f5c7ab49df889d6c63a78a 1436 my-x200_0.6-2.debian.tar.xz
21Files: 21Files:
22 2c09ed89728733006a5c51bc7fd07d17 433766 my-x200_0.6.orig.tar.gz 22 2757c40eefe786cc922d0f82a25dca32 3359469 my-x200_0.6.orig.tar.gz
23 08e2552fbd769e9d9aec4bafd5a3ba2a 1436 my-x200_0.6-2.debian.tar.xz 23 08e2552fbd769e9d9aec4bafd5a3ba2a 1436 my-x200_0.6-2.debian.tar.xz
24 24
25-----BEGIN PGP SIGNATURE----- 25-----BEGIN PGP SIGNATURE-----
26 26
27iQJMBAEBCAA2FiEERaXhpjEUeDwRCTLxF3PpJICFyMcFAmAgJ8UYHGFsZXNzaUBy 27iQJMBAEBCAA2FiEERaXhpjEUeDwRCTLxF3PpJICFyMcFAmAmqdkYHGFsZXNzaUBy
28b2JlcnRhbGVzc2kubmV0AAoJEBdz6SSAhcjHuFYQAISOezMNj0dmAsd112AvjOwx 28b2JlcnRhbGVzc2kubmV0AAoJEBdz6SSAhcjHIZoP/iAXvThBK2MBWqbLh0jevaFw
29tNbfpqVSzjjyzPh6FvaEpQfodeCRqEjqzcSe7yD5awMBzmNHYdmwMkpFwKyDG4L9 29f87Q9v9Pj/N7gnv3JSkKkQRyCtIBfMI9LmtaUgZ/Fk4YG9Rp70nwKHx9g+shiP1h
30hLSBtng4ce9FTYL3jYS2EpImKpPP+Lpo99CMsgJEQAn8kv/KoR3fKBAF/q84TaRk 30MIpFaryHK3qBGwkX8AmIYmyIJrwqNAa819SXce6C0oe0y4Y2sU2rcB1XZwVU12z1
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616UM8aTNyFqa1MEjV
40=OP2p 40=Iegc
41-----END PGP SIGNATURE----- 41-----END PGP SIGNATURE-----
diff --git a/my-x200_0.6-2_amd64.deb b/my-x200_0.6-2_amd64.deb
index 3959700..1c70d70 100644
--- a/my-x200_0.6-2_amd64.deb
+++ b/my-x200_0.6-2_amd64.deb
Binary files differ
diff --git a/my-x200_0.6.orig.tar.gz b/my-x200_0.6.orig.tar.gz
index 7a32b05..4bb3791 100644
--- a/my-x200_0.6.orig.tar.gz
+++ b/my-x200_0.6.orig.tar.gz
Binary files differ