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.

26 lines
565 B

  1. minitdir=etc/minit
  2. install_minit()
  3. {
  4. if [ -d $base/package/*/minit/inits/$1 ] ; then
  5. echo "Installing minit config ..."
  6. [ -d $root/$minitdir/$1 ] || mkdir $root/$minitdir/$1
  7. for x in $(cd $base/package/*/minit/inits;
  8. find $1 ! -path '*/.*' -type f); do
  9. src="$base/package/*/minit/inits/$x"
  10. trg="$root/$minitdir/$x"
  11. mkdir -p `dirname $trg`
  12. if [[ $x = */run ]] && grep '^ln -s' $src; then
  13. rm -f $trg ; `cat $src` $trg
  14. else
  15. cp -fv $src $trg
  16. chmod +x $trg
  17. fi
  18. done
  19. else
  20. abort "No minit config known for $1"
  21. fi
  22. }