From: Sami Kerola <kerolasa@iki.fi>
To: Karel Zak <kzak@redhat.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
Marcel Holtmann <marcel@holtmann.org>,
linux-wireless@vger.kernel.org,
util-linux <util-linux@vger.kernel.org>
Subject: Re: rfkill(8) move and improvements
Date: Sat, 1 Jul 2017 10:06:55 +0100 (BST) [thread overview]
Message-ID: <alpine.LNX.2.20.1707010956520.7939@imuri> (raw)
In-Reply-To: <20170630074729.s3gknfobabgepk4h@ws.net.home>
On Fri, 30 Jun 2017, Karel Zak wrote:
> On Thu, Jun 29, 2017 at 10:23:12PM +0100, Sami Kerola wrote:
> > On 29 June 2017 at 15:04, Johannes Berg <johannes@sipsolutions.net> wrote:
> > >> The otherday I ran powertop and it did rfkill to save battery, which
> > >> was particularly annoying because I had not installed rfkill(8)
> > >> package.
> > >> Fixing the immediate issue was relatively easy, but the ordeal made
> > >> me wonder if this tool could be moved to a package that is installed
> > >> by default to all systems, such as util-linux.
> > >
> > > [...]
> > >
> > >> What do you think, would the move and proposed updates be ok?
> > >
> > > I can't say I mind, and most of your proposed changes seem sensible,
> > > though I haven't reviewed them in enough detail to comment on them.
> > > Something that caught my eye here was comparing a string to _("all")
> > > which seems wrong, since that'd mean you'd have to type the translated
> > > version even on the command line? That seems really awkward (to put it
> > > charitably).
> > >
> > > However, at the same time, I have very little desire to get involved
> > > with util-linux as yet another project, so frankly I'd probably
> > > continue to "maintain" the current rfkill tool - which really hasn't
> > > changed in a very long time, and hope somebody else picks up
> > > maintenance of rfkill included in util-linux.
> >
> > Hello Johannes,
> >
> > Thank you for feedback. I removed the rfkill command strings from
> > translations, and gave hint to translators how to deal with them in
> > usage() output. Also in same go updates are rebased on top of
> > most recent upstream to get usage() --help and --version handling
> > done correctly.
> >
> > What comes to maintenance I am fairly optimistic util-linux is a
> > good home for the rfkill. Karel, what do you think?
>
> I have no problem with it, if Johannes agree with this step. We have
> definitely manpower to maintain it.
Hello,
I did couple last minute changes to my remote branch, that should now be
ready for final review.
git://github.com/kerolasa/lelux-utiliteetit.git rfkill
The changes:
1. Add commit to make rfkill_event struct read size check to be back and
forward compatible.
https://github.com/kerolasa/lelux-utiliteetit/commit/fdb76db0d32fdd77bff49b6c2a7db77763b1c4e4
2. Refer this email thread in merge commit.
https://github.com/kerolasa/lelux-utiliteetit/commit/0b6c2693debf1219cfbe39dcf70e208abc94c1af
3. Change 'yes' and 'no' in rfkill status output to 'blocked' and
'unblocked' that are more associative with command strings. Here is a
sample output:
$ rfkill
DEVICE ID TYPE SOFT HARD
ideapad_wlan 0 wlan unblocked unblocked
ideapad_bluetooth 1 bluetooth blocked unblocked
hci0 2 bluetooth blocked unblocked
phy0 3 wlan unblocked unblocked
4. Mark in configure.ac rfkill is linux only utility.
https://github.com/kerolasa/lelux-utiliteetit/commit/5f715abb96a4fa3699bcfdb35d029d7ae3a5ea07#diff-67e997bcfdac55191033d57a16d1408aR1596
5. Small wording change in --output manual page entry: s/list of all
supported/list of available/. The later matches with --help output
title, hopefully makes it easier to know what is being referred.
--
Sami Kerola
http://www.iki.fi/kerolasa/
next prev parent reply other threads:[~2017-07-01 9:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-25 13:04 rfkill(8) move and improvements Sami Kerola
2017-06-29 14:04 ` Johannes Berg
2017-06-29 21:23 ` Sami Kerola
2017-06-30 7:47 ` Karel Zak
2017-07-01 9:06 ` Sami Kerola [this message]
2017-08-30 19:40 ` Sami Kerola
2017-08-31 9:46 ` Karel Zak
2017-08-31 9:47 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.20.1707010956520.7939@imuri \
--to=kerolasa@iki.fi \
--cc=johannes@sipsolutions.net \
--cc=kzak@redhat.com \
--cc=linux-wireless@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).