database.sh 234 B

12345678910111213141516
  1. #!/bin/bash
  2. for f in /usr/src/init/*; do
  3. case "$f" in
  4. *.sh)
  5. if [ -x "$f" ]; then
  6. echo "$0: running $f"
  7. "$f"
  8. else
  9. echo "$0: sourcing $f"
  10. . "$f"
  11. fi
  12. ;;
  13. *) echo "$0: ignoring $f" ;;
  14. esac
  15. echo
  16. done