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.

updatefiles.sh 636 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # copy some important files into current directory.
  3. files="
  4. /etc/rc.conf
  5. /var/log/pacman.log
  6. /etc/pacman.d/gnupg/gpg.conf
  7. /etc/vconsole.conf
  8. "
  9. convpass(){
  10. echo $1 | sed -e 's / ! g'
  11. }
  12. for i in $files
  13. do
  14. cp -fvu $i ./$(basename $i)
  15. done
  16. mapdir=/usr/share/kbd/keymaps/i386/qwerty
  17. test ${mapdir}/myjp106.map.gz -nt ./myjp106.map &&
  18. zcat ${mapdir}/myjp106.map.gz >./myjp106.map &&
  19. {
  20. test -f ./jp106.map ||
  21. zcat ${mapdir}/jp106.map.gz >./jp106.map
  22. diff -u ./jp106.map ./myjp106.map >mymap.diff
  23. echo "Make myjp106 patch."
  24. }
  25. pacman -Qqe | grep -vx "$(pacman -Qqm)" > ./pkg.lst &&
  26. echo "Make pkg.lst."