diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-16 00:35:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-16 00:35:38 +0000 |
commit | 76eddada743e865a48fcd439cd8e259417049d28 (patch) | |
tree | 14c2f5abbaf2cb3efdf9232701459e46ec00c115 /sys-devel | |
parent | Add gcc-4.3 patch per bug 255910. Thanks to Gene Seto <geneseto@hotmail.com> ... (diff) | |
download | gentoo-2-76eddada743e865a48fcd439cd8e259417049d28.tar.gz gentoo-2-76eddada743e865a48fcd439cd8e259417049d28.tar.bz2 gentoo-2-76eddada743e865a48fcd439cd8e259417049d28.zip |
move log file name into a variable
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/prelink/files/prelink.cron | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys-devel/prelink/files/prelink.cron b/sys-devel/prelink/files/prelink.cron index f52d576cd152..0f9dd6535e57 100644 --- a/sys-devel/prelink/files/prelink.cron +++ b/sys-devel/prelink/files/prelink.cron @@ -1,6 +1,7 @@ #!/bin/sh . /etc/conf.d/prelink +log="/var/log/prelink.log" case $PRELINKING in yes|no);; @@ -12,9 +13,9 @@ renice +19 -p $$ >/dev/null 2>&1 if [ "$PRELINKING" != yes ]; then sed -ri '/^[[:space:]]*#?[[:space:]]*KDE_IS_PRELINKED=/s:.*:#KDE_IS_PRELINKED=1:' /etc/env.d/*kde* 2>/dev/null if [ -f /etc/prelink.cache ]; then - echo /usr/sbin/prelink -uav > /var/log/prelink.log - /usr/sbin/prelink -uav >> /var/log/prelink.log 2>&1 \ - || echo Prelink failed with return value $? >> /var/log/prelink.log + echo /usr/sbin/prelink -uav > ${log} + /usr/sbin/prelink -uav >> ${log} 2>&1 \ + || echo Prelink failed with return value $? >> ${log} rm -f /etc/prelink.cache # Restart init if needed [ -n "$(find `ldd /sbin/init | awk 'NF == 4 { print $3 }'` /sbin/init -ctime -1 2>/dev/null )" ] && /sbin/telinit u @@ -50,9 +51,9 @@ else cp -a /var/lib/misc/prelink.full /var/lib/misc/prelink.quick fi -echo /usr/sbin/prelink -av $PRELINK_OPTS > /var/log/prelink.log -/usr/sbin/prelink -av $PRELINK_OPTS >> /var/log/prelink.log 2>&1 \ - || echo Prelink failed with return value $? >> /var/log/prelink.log +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 |