aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2021-06-21 15:29:19 +0200
committerRobert Alessi <alessi@robertalessi.net>2021-06-21 15:29:19 +0200
commit561f2901e4c547b0bd95e5eb08ea11bfc981f870 (patch)
treee35a55971344d4eecdaf6ce693d332a1655b6d92
parentc9a430d6ae40f5f7e2c99d2c088d5b54456ca140 (diff)
downloadmy-x200-561f2901e4c547b0bd95e5eb08ea11bfc981f870.tar.gz
use macchanger for the wireless instead of wpa_supplicantHEADv0.7-5master
-rw-r--r--debian/changelog5
-rw-r--r--my-x200.confd28
-rw-r--r--my-x200.initd6
-rw-r--r--my-x200_0.7-4.debian.tar.xzbin1572 -> 0 bytes
-rw-r--r--my-x200_0.7-4.dsc41
-rw-r--r--my-x200_0.7-4_amd64.debbin5184 -> 0 bytes
-rw-r--r--my-x200_0.7-5.debian.tar.xzbin0 -> 1604 bytes
-rw-r--r--my-x200_0.7-5.dsc41
-rw-r--r--my-x200_0.7-5_amd64.debbin0 -> 5416 bytes
-rw-r--r--my-x200_0.7.orig.tar.gzbin8818 -> 17338 bytes
10 files changed, 72 insertions, 49 deletions
diff --git a/debian/changelog b/debian/changelog
index b162f0e..8f5dae1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
1my-x200 (0.7-4) UNRELEASED; urgency=medium 1my-x200 (0.7-5) UNRELEASED; urgency=medium
2 2
3 * Initial release. 3 * Initial release.
4 * Removed remnant lines left of openrc-run in initd file 4 * Removed remnant lines left of openrc-run in initd file
@@ -7,5 +7,6 @@ my-x200 (0.7-4) UNRELEASED; urgency=medium
7 * Added conflict with acpi-support 7 * Added conflict with acpi-support
8 * Map ThinkVantage to /etc/init.d/my-x200 refresh 8 * Map ThinkVantage to /etc/init.d/my-x200 refresh
9 * Kill radio only if enable_privacy is set to true 9 * Kill radio only if enable_privacy is set to true
10 * Added an option to use macchanger for the wireless interface
10 11
11 -- Robert Alessi <alessi@robertalessi.net> Mon, 22 Feb 2021 17:59:57 +0100 12 -- Robert Alessi <alessi@robertalessi.net> Fri, 18 Jun 2021 16:37:01 +0200
diff --git a/my-x200.confd b/my-x200.confd
index ae9606e..0080db2 100644
--- a/my-x200.confd
+++ b/my-x200.confd
@@ -30,21 +30,39 @@ PWMFREQ_RATE="0x8bb7b16dc5b6a"
30 30
31# IMPORTANT NOTICE: As dhcpcd uses ANY ONE network interface that is 31# IMPORTANT NOTICE: As dhcpcd uses ANY ONE network interface that is
32# connected to the DHCP device to generate the DIUD-LLT file, the 32# connected to the DHCP device to generate the DIUD-LLT file, the
33# wireless interface MUST have its MAC address spoofed as well. To 33# wireless interface MUST have its MAC address spoofed as well.
34# make wpa_supplicant handle this, add the following lines in 34
35# To have wpa_supplicant handle this, add the following lines in
35# /etc/wpa_supplicant/wpa_supplicant.conf: 36# /etc/wpa_supplicant/wpa_supplicant.conf:
37#
36# ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev 38# ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev
37# update_config=1 39# update_config=1
38# mac_addr=1 40# mac_addr=1
39# preassoc_mac_addr=1 41# preassoc_mac_addr=1
42#
43# Alternatively, supply the actual wireless interface name as value of
44# the variable 'wireless_interface' below.
40 45
41# Finally, it is advisable to set the hostname to "localhost" and have 46# Finally, it is advisable to set the hostname to "localhost" and have
42# "hostname_short" in /etc/dhcpcd.conf so that the actual hostname of 47# "hostname_short" in /etc/dhcpcd.conf so that the actual hostname of
43# the machine should not be sent to the DHCP server. 48# the machine should not be sent to the DHCP server.
44 49
45enable_privacy="false" # either 'true' or 'false' 50enable_privacy="false" # either 'true' or 'false'
46wired_interface="" # supply the actual interface name! In case of 51
47 # doubt, see the output of 'ls /sys/class/net/' 52# If not set below, the MAC address of the wired interface will not be
53# spoofed.
54wired_interface="" # supply the actual interface name! In case of
55 # doubt, see the output of 'ls /sys/class/net/'
56
57# If not set below, the MAC address of the wireless interface will not
58# be spoofed, unless the spoofing is handled by wpa_supplicant as
59# described above.
60wireless_interface="" # supply the actual interface name! In case of
61 # doubt, see the output of 'ls /sys/class/net/'
62
63# macchanger options:
64macchanger_options="-r" # this sets a fully random MAC. Adapt. (Read
65 # `man macchanger` on how to do this.)
48 66
49################## 67##################
50# Backup options # 68# Backup options #
diff --git a/my-x200.initd b/my-x200.initd
index bb05cf4..7212d52 100644
--- a/my-x200.initd
+++ b/my-x200.initd
@@ -82,7 +82,11 @@ do_privacy() {
82 then 82 then
83 printf '0004' > /var/lib/dhcpcd/duid 83 printf '0004' > /var/lib/dhcpcd/duid
84 cat /proc/sys/kernel/random/boot_id >> /var/lib/dhcpcd/duid 84 cat /proc/sys/kernel/random/boot_id >> /var/lib/dhcpcd/duid
85 /usr/bin/macchanger -r $wired_interface 85 /usr/bin/macchanger "$macchanger_options" $wired_interface
86 fi
87 if [ -n "${wireless_interface}" ]
88 then
89 /usr/bin/macchanger "$macchanger_options" $wireless_interface
86 fi 90 fi
87 fi 91 fi
88} 92}
diff --git a/my-x200_0.7-4.debian.tar.xz b/my-x200_0.7-4.debian.tar.xz
deleted file mode 100644
index 4d7873e..0000000
--- a/my-x200_0.7-4.debian.tar.xz
+++ /dev/null
Binary files differ
diff --git a/my-x200_0.7-4.dsc b/my-x200_0.7-4.dsc
deleted file mode 100644
index f9d34ba..0000000
--- a/my-x200_0.7-4.dsc
+++ /dev/null
@@ -1,41 +0,0 @@
1-----BEGIN PGP SIGNED MESSAGE-----
2Hash: SHA256
3
4Format: 3.0 (quilt)
5Source: my-x200
6Binary: my-x200
7Architecture: any
8Version: 0.7-4
9Maintainer: Robert Alessi <alessi@robertalessi.net>
10Homepage: http://git.robertalessi.net/my-x200
11Standards-Version: 4.3.0
12Build-Depends: debhelper (>= 10)
13Package-List:
14 my-x200 deb misc optional arch=any
15Checksums-Sha1:
16 7a8ff3718b1fe417282b34f703a864a5d6e5f319 8818 my-x200_0.7.orig.tar.gz
17 81e7c0229dba9a6434a6cc599534af911f62ef60 1572 my-x200_0.7-4.debian.tar.xz
18Checksums-Sha256:
19 46cb0eb50526a721742ca2edca7a030b023c5b6de61387837613fb9fce4590f7 8818 my-x200_0.7.orig.tar.gz
20 c3b0b8c5494538c719b46d195fd29745ee9f0ac6f055d687e234718042d4bde8 1572 my-x200_0.7-4.debian.tar.xz
21Files:
22 c0eccaafaef86ee44961d88ec3b3b5e0 8818 my-x200_0.7.orig.tar.gz
23 54503bb01e31c237289c4ada0dbc64ee 1572 my-x200_0.7-4.debian.tar.xz
24
25-----BEGIN PGP SIGNATURE-----
26
27iQJMBAEBCAA2FiEERaXhpjEUeDwRCTLxF3PpJICFyMcFAmAz5rwYHGFsZXNzaUBy
28b2JlcnRhbGVzc2kubmV0AAoJEBdz6SSAhcjHXgAP/iIDdjWkjBQC5fqstnebKAEP
29VQMsFOtBeX9X5nsK4QSZoKZqpqxhhi068zE0oBVr/NLoyKO/sTncbiQfpL1XCz5e
30itgnM67pwGH9lwemMr4sBKDtdyMtG+Abp8vQtfYNmBz43UYw0qNNhtep0NHTdkj5
31qq22qeBOSLfrBryYFjsAEPSBg+VIyTbWnGlk0K4H/Vfstsg/qKiOQz3cjQMEPtkw
32xg7J86U6P9N7+chYeWFZuTxWmd7dD02s9D5RMSVo/sr9KBzl5t3mkJeZJdWHeR2n
338AfcnXRsjggGItRkRodD4nbUTVNspHL5+eW6TgegirMLqKoqIZvGg10Pocb7ZQOf
34sku3uQNrOoRXgppDxN26TLBC3aLpN4/n3Nh7BNvJp5R8mdA72TSkwa14WpqNVSWJ
35tc/5SMpZ0gCLESAR5dZlcHXG2sm2fvbeQmnxwZUWVSn0Fjh9GuugW9gfI85507Hx
36TpasLKcfFJfQpqv9lU3b0Mi9mD1wYda/yhpKdDL0gdDjKuaXZOZtQQWZNeet1d1t
376NNc0gTVSHLv40aSZ3ftJu4SXkZJVCr8EHv2AOQHwnapsAKJa3Re1Z2wD9T3FVw+
3896lRZR/HGYs7ZnDrxkQVg7D6LPxhQixyA0SUreFPitrrVFVcMbgFN67trX2Mln4y
39FPe3EYiNtTkRp2Wqcqkj
40=qlI4
41-----END PGP SIGNATURE-----
diff --git a/my-x200_0.7-4_amd64.deb b/my-x200_0.7-4_amd64.deb
deleted file mode 100644
index 1c1970e..0000000
--- a/my-x200_0.7-4_amd64.deb
+++ /dev/null
Binary files differ
diff --git a/my-x200_0.7-5.debian.tar.xz b/my-x200_0.7-5.debian.tar.xz
new file mode 100644
index 0000000..4dff02f
--- /dev/null
+++ b/my-x200_0.7-5.debian.tar.xz
Binary files differ
diff --git a/my-x200_0.7-5.dsc b/my-x200_0.7-5.dsc
new file mode 100644
index 0000000..5825d48
--- /dev/null
+++ b/my-x200_0.7-5.dsc
@@ -0,0 +1,41 @@
1-----BEGIN PGP SIGNED MESSAGE-----
2Hash: SHA256
3
4Format: 3.0 (quilt)
5Source: my-x200
6Binary: my-x200
7Architecture: any
8Version: 0.7-5
9Maintainer: Robert Alessi <alessi@robertalessi.net>
10Homepage: http://git.robertalessi.net/my-x200
11Standards-Version: 4.3.0
12Build-Depends: debhelper (>= 10)
13Package-List:
14 my-x200 deb misc optional arch=any
15Checksums-Sha1:
16 66069ebc2b2e796dd2334bb63d926d2eccd7a404 17338 my-x200_0.7.orig.tar.gz
17 223b83ba3200c97c4e8113cc1b8b5f118614b59f 1604 my-x200_0.7-5.debian.tar.xz
18Checksums-Sha256:
19 4c1c07ea13e132abf139041d2725858b136fce58e5f25d6ec56833f73da8e401 17338 my-x200_0.7.orig.tar.gz
20 fd545db5384b077baeb22c3da2cfd959c53ec40a2c2b552021d12c873d167b34 1604 my-x200_0.7-5.debian.tar.xz
21Files:
22 032368f2035f07d58e9b13cb17995fbb 17338 my-x200_0.7.orig.tar.gz
23 433b243972ffb3c12c556b045b545ba2 1604 my-x200_0.7-5.debian.tar.xz
24
25-----BEGIN PGP SIGNATURE-----
26
27iQJMBAEBCAA2FiEERaXhpjEUeDwRCTLxF3PpJICFyMcFAmDQk5wYHGFsZXNzaUBy
28b2JlcnRhbGVzc2kubmV0AAoJEBdz6SSAhcjHTFcP/2sY2EaaYh1Z/9A899mVbH/T
29Zj8AoBbnsRfztgqbz53ayA66455ZYzXKeY6xIpByBLFIvFKaGsHbQZR/RHiT+aos
30KyS+apnjd+xBj1aOYCFf3wskkywTwawY0jUoI5UbPuBMD1m6axtnRelfuMdNx/FA
31HUkc5EdUvw62ET/Me4Eae3fuoTWEodMfQl1yeb5iWE/qKZ4a0GeYVF2+uocLKxOE
32eT2UZFmbu45vrAu+Ok86BGGSCHpZUqnvYPwx58rV8p/x/urTnNmNjBBopvkH8ng2
33qMtXdFaS1qrxe+gz9Zfjd7gAQjpsOrMYnBtYG6mxkiZ1c5sHsV9JQjHadB/QMDul
34LkymQ8dJB652Cy8oV6oaWRRCwmJOMNwuyYX7L9KpkJJLHNHmdq1oR5zjuX9TaDvo
35Gk1R6ZVjxWJernt6L5bdD/ktxE8EmOf8Sb5YEwr2YVHyEp9GHIe9G6dV+cNQ0TXh
36O85bRSvuN6PK1T1cx+sLnvlVhwg7xHbHHe6uhVrwfvjo6pL2JDEsZOXSI5GBnF5c
37Zxpu7nLJA5IWq3A789Qnz4TgI+3+CJsSldVkBJGcncdqUmBJEoqluUeJRG5OA0Td
38oqnwfl9hfi4qz20qCryEpauaJrdRe/yjcpxC/7CWhhY6QbZSYc5WGbwvndoZmM5p
39LHJkwuuLBbLpdQTBtX8X
40=Si3X
41-----END PGP SIGNATURE-----
diff --git a/my-x200_0.7-5_amd64.deb b/my-x200_0.7-5_amd64.deb
new file mode 100644
index 0000000..5433a00
--- /dev/null
+++ b/my-x200_0.7-5_amd64.deb
Binary files differ
diff --git a/my-x200_0.7.orig.tar.gz b/my-x200_0.7.orig.tar.gz
index dacfa54..1b44f13 100644
--- a/my-x200_0.7.orig.tar.gz
+++ b/my-x200_0.7.orig.tar.gz
Binary files differ