xbps-triggers: systemd-service: ignore unexistent modules-load.d files.

This commit is contained in:
Juan RP 2013-09-13 08:31:01 +02:00
parent 311650d467
commit 6e077d9e92
2 changed files with 3 additions and 2 deletions

View file

@ -131,7 +131,8 @@ _EOF
done
# Load modules specified in systemd_modules files.
for f in ${systemd_modules}; do
for j in $(cat usr/lib/modules-load.d/${f}); do
[ ! -f "usr/lib/modules-load.d/${f}" ] && continue
for j in "$(cat usr/lib/modules-load.d/${f})"; do
modprobe -q ${j} || :
done
done

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.72
version=0.73
revision=1
bootstrap=yes
short_desc="The XBPS triggers for Void Linux"