浏览代码

add arch conf saver

pull/1/head
10sr 12 年前
父节点
当前提交
114657bf10
共有 2 个文件被更改,包括 36 次插入0 次删除
  1. +3
    -0
      conf/arch/README.md
  2. +33
    -0
      conf/arch/updatefiles.sh

+ 3
- 0
conf/arch/README.md 查看文件

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

some copies of conf files and utils

+ 33
- 0
conf/arch/updatefiles.sh 查看文件

@@ -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."

正在加载...
取消
保存