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

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. # Copyright: 2017 Alf Gaida <agaida@siduction.org>
  3. # License: WTFPL-2
  4. #
  5. # 0. You just DO WHAT THE FUCK YOU WANT TO.
  6. help() {
  7. echo "========================================================"
  8. echo "= ="
  9. echo "= WARNING: ="
  10. echo "= This script makes your install DFSG compliant. ="
  11. echo "= Running it might on the other hand lead to a ="
  12. echo "= not working wifi or problems with your AMD card. ="
  13. echo "= ="
  14. echo "========================================================"
  15. }
  16. usage() {
  17. echo "remove-nonfree [options]"
  18. echo ""
  19. echo "Options:"
  20. echo " --help, -h this screen"
  21. echo " --show, -s show things to touch"
  22. }
  23. # implement optargs
  24. # TODO
  25. pkglist=$(vrms -s -q)
  26. for i in $pkglist; do
  27. apt purge $i --assume-yes || true
  28. done
  29. for i in /etc/apt/sources.list.d/*; do
  30. sed -i 's#contrib##g' $i
  31. sed -i 's#non-free##g' $i
  32. done
  33. vrms