[arch-projects] [mkinitcpio][PATCH] functions: add_udev_rules and add_systemd_unit

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Sat Apr 13 02:21:13 EDT 2013

On 04/12/2013 10:43 PM, Tom Gundersen wrote:

> +    for dep in "${unitdir}"/*.{wants,requires}/$(basename $unit); do

Instead of basename, you can use ${unit##*/}

> +		add_systemd_unit $(basename $dep)

same here. I guess should be valid in this context, untested.

Thanks for this work!

Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20130413/3c839c88/attachment.asc>

More information about the arch-projects mailing list