OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../cron/00-updates.cron
  6. # Copyright (C) 2006 The OpenSDE Project
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. # Copyright (C) 1998 - 2003 Clifford Wolf
  9. #
  10. # More information can be found in the files COPYING and README.
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; version 2 of the License. A copy of the
  15. # GNU General Public License can be found in the file COPYING.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. exec 2>&1
  18. for kver in $( ls -1d /lib/modules/*/ 2> /dev/null | cut -d/ -f4 ); do
  19. echo "Running depmod ($kver) ..."
  20. if [ -f /boot/System.map_$kver ]; then
  21. depmod -a -e -F /boot/System.map_$kver $kver 2>&1 | tee /tmp/depmod.$$
  22. else
  23. depmod -a $kver 2>&1 | tee /tmp/depmod.$$
  24. fi
  25. warn=`grep "warnings" /tmp/depmod.$$ | wc -l`
  26. echo " produced $warn warnings."
  27. rm -r /tmp/depmod.$$
  28. done
  29. echo "Running ldconfig ..."
  30. ldconfig
  31. echo "Running makewhatis ..."
  32. makewhatis
  33. echo "Running updatedb ..."
  34. updatedb "--prunepaths=/tmp /var/tmp /root /proc /sys /dev /home /user /mnt"
  35. echo "Recreate info dir ..."
  36. rm -f /usr/share/info/dir
  37. find /usr/share/info /opt/*/info/ -type f 2>/dev/null |
  38. grep -v -E -e "/dir$|-[0-9]+$" |
  39. while read x ; do
  40. { install-info "--info-dir=/usr/share/info" $x 2>&1 ; } |
  41. egrep -v 'no info dir entry in|already exists, for file'
  42. done
  43. echo