base-files: fix user creation on sysupgrade with few opkg control files
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 24 Jan 2017 17:55:13 +0000 (18:55 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 24 Jan 2017 18:08:41 +0000 (19:08 +0100)
commit86ccaf4c18dabec9761e71a31d1456611cf1cdf9
tree2b30edfcbb5e2fcc68d175fb5d4ebcd5a3aa1c8b
parent7e1fc09c4f2cc1656f315abaf6d3ba0eb11aa3fa
base-files: fix user creation on sysupgrade with few opkg control files

If only a single opkg control file exists (which can happen with
CONFIG_CLEAN_IPKG), grep would not print the file name by default. Instead
of forcing it using -H, we just switch to -l (print only file names) and
get rid of the cut.

Add -s to suppress an error message when no control files exist.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
package/base-files/files/etc/uci-defaults/13_fix_group_user