init.sh 191 B

1234567891011121314151617
  1. #!/bin/sh
  2. set -e
  3. [ $$ -eq 1 ] && exec dumb-init -- "$0" "$@"
  4. [ -f /root/init.sh ] && [ -x /root/init.sh ] && /root/init.sh
  5. cd /root
  6. if [ $# -gt 0 ]; then
  7. "$@"
  8. else
  9. bash --login -l
  10. fi