diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
commit | f1af93971b7490792d8541bc790e0d8c6d787059 (patch) | |
tree | a38046712bbc3a3844d77452d16c84e716caa3d4 /sys-devel/prelink/files | |
parent | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff) |
gentoo resync : 06.08.2019
Diffstat (limited to 'sys-devel/prelink/files')
-rw-r--r-- | sys-devel/prelink/files/prelink.cron | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-devel/prelink/files/prelink.cron b/sys-devel/prelink/files/prelink.cron index a3edc429fee7..067fc2ea97a2 100644 --- a/sys-devel/prelink/files/prelink.cron +++ b/sys-devel/prelink/files/prelink.cron @@ -55,7 +55,7 @@ fi echo /usr/sbin/prelink -av $PRELINK_OPTS > ${log} /usr/sbin/prelink -av $PRELINK_OPTS >> ${log} 2>&1 \ || echo Prelink failed with return value $? >> ${log} -# Restart init if needed -[ -n "$(find `ldd /sbin/init | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u +# Restart init if needed (and if exists) +[ -n "$(find `ldd /sbin/init 2>/dev/null | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u exit 0 |