A bin folder, holding helpfull scripts and commands
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

init_homepath 748B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. #
  3. BASE_FOLDERS="data Downloads media_images Videos C64"
  4. VIP_FOLDERS="prj prj/Arduino Schreibtisch"
  5. echo The following folders will be deleted:
  6. for folder in $BASE_FOLDERS; do
  7. echo -e "* $HOME/\033[1m$folder\033[0m"
  8. done
  9. for folder in $VIP_FOLDERS; do
  10. echo -e "* $HOME/\033[1m$folder\033[0m"
  11. done
  12. echo
  13. read -r -p "Are you sure? [y/N] " response
  14. case "$response" in
  15. [yY][eE][sS]|[yY])
  16. for folder in $BASE_FOLDERS; do
  17. rm -rf $HOME/`basename $folder`; ln -s /usr/data/$USER/$folder $HOME
  18. done
  19. for folder in $VIP_FOLDERS; do
  20. rm -rf $HOME/`basename $folder`; ln -s /usr/data/$USER/data/$folder $HOME
  21. done
  22. ;;
  23. *)
  24. echo No folder initialisation!
  25. ;;
  26. esac