[PATCH] nologin: new applet.
Natanael Copa
natanael.copa at gmail.com
Fri Nov 4 15:39:03 UTC 2011
On Fri, Nov 4, 2011 at 4:00 PM, Denys Vlasenko <vda.linux at googlemail.com> wrote:
> On Fri, Nov 4, 2011 at 12:41 PM, Natanael Copa <natanael.copa at gmail.com> wrote:
...
> Looks like it can be implemented as shell script in fewer bytes.
Yeah, and I saw that it has been rejected before for that reason.
Other applets can also be implemented as shell scripts:
add-shell:
grep -q "^${1}$" /etc/shells || echo "${1}" >> /etc/shells
remove-shell:
sed -i -e ":^${1}$:d" /etc/shells
Still, its nice and convenient to have /sbin/nologin shipped and
installed with the rest of the system. And a standalone file takes
minimum 4k of disk space, so please reconsider an inclusion (its
configured off by default for those who prefers shell version)
--
Natanael Copa
More information about the busybox
mailing list