From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53227) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZfrs-0005VI-2n for guix-patches@gnu.org; Sat, 08 Jun 2019 14:15:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZfrr-0007gf-6x for guix-patches@gnu.org; Sat, 08 Jun 2019 14:15:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40137) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZfrq-0007fY-OW for guix-patches@gnu.org; Sat, 08 Jun 2019 14:15:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hZfrq-0003qc-FT for guix-patches@gnu.org; Sat, 08 Jun 2019 14:15:02 -0400 Subject: [bug#36141] [PATCH] installer: Unblock relevant rfkill switches. Resent-Message-ID: From: Tobias Geerinckx-Rice References: <20190608175505.11162-1-me@tobias.gr> In-reply-to: <20190608175505.11162-1-me@tobias.gr> Date: Sat, 08 Jun 2019 20:14:40 +0200 Message-ID: <87tvd054hb.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36141@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oh=E2=80=A6 Tobias Geerinckx-Rice wrote: > + (connman-rfkill-types `(("bluetooth" . "bluetooth") > + ("wifi" . "wlan"))) > + (rfkill-type (assoc-ref connman-rfkill-types type))) Turns out that util-linux allows =E2=80=98wifi=E2=80=99 as a special alias = for=20 =E2=80=98wlan=E2=80=99: // only result for =E2=80=98grep -riw wifi=E2=80=99: static const struct rfkill_type_str rfkill_type_strings[] =3D { { .type =3D RFKILL_TYPE_ALL, .name =3D "all" }, { .type =3D RFKILL_TYPE_WLAN, .name =3D "wlan", .desc =3D "Wireless LAN" }, { .type =3D RFKILL_TYPE_WLAN, .name =3D "wifi" }, /* alias */ =E2=80=A6so we could drop connman-rfkill-types completely and rely on that= =20 (undocumented!) quirk. Of course I don't believe we should, but now you know as much as I=20 do :-) Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXPv7EQAKCRANsP+IT1Vt edCGAQDa0tEXNbh6ez7Q8BthA4w5ZVmmn+Wa1CfJ9dx2ExFBcgEAvuXKXOUVWSSz m+Pwo6YY02+ANCRI4KLXWMnnb3S31w0= =CIoT -----END PGP SIGNATURE----- --=-=-=--