Browse Source

add arch conf saver

pull/1/head
10sr 12 years ago
parent
commit
114657bf10
2 changed files with 36 additions and 0 deletions
  1. +3
    -0
      conf/arch/README.md
  2. +33
    -0
      conf/arch/updatefiles.sh

+ 3
- 0
conf/arch/README.md View File

@@ -0,0 +1,3 @@
# Arch Linux

some copies of conf files and utils

+ 33
- 0
conf/arch/updatefiles.sh View File

@@ -0,0 +1,33 @@
#!/bin/sh
# copy some important files into current directory.

files="
/etc/rc.conf
/var/log/pacman.log
/etc/pacman.d/gnupg/gpg.conf
/etc/vconsole.conf
"

convpass(){
echo $1 | sed -e 's / ! g'
}

for i in $files
do
cp -fvu $i ./$(basename $i)
done

mapdir=/usr/share/kbd/keymaps/i386/qwerty

test ${mapdir}/myjp106.map.gz -nt ./myjp106.map &&
zcat ${mapdir}/myjp106.map.gz >./myjp106.map &&
{
test -f ./jp106.map ||
zcat ${mapdir}/jp106.map.gz >./jp106.map

diff -u ./jp106.map ./myjp106.map >mymap.diff
echo "Make myjp106 patch."
}

pacman -Qqe | grep -vx "$(pacman -Qqm)" > ./pkg.lst &&
echo "Make pkg.lst."

Loading…
Cancel
Save