LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: zhllg

公开我的脚本集合

[复制链接]
发表于 2008-12-24 12:27:01 | 显示全部楼层
好东西,太伟大了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-28 22:03:18 | 显示全部楼层
http://www.gentoo-cn.org/gitweb/ ... bd943c32772ed19c474

加入了一个-s选项,只sync,不升级
sync == layman -S && eix-sync
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-30 14:52:55 | 显示全部楼层
1. debugemerge去掉sudo调用,加入root身份判断

2. 加入一个chroot.sh脚本
http://www.gentoo-cn.org/gitweb/ ... cbd06b8d1cb978b1a02
cd $DIR
cp -L /etc/resolv.conf etc
cp -L /etc/fstab etc
mount -t proc none proc
mount --bind /dev dev
[ -d usr/portage ] || sudo mkdir usr/portage
mount --bind /usr/portage usr/portage
mount --bind /home/${USER} home/${USER}
mount --bind /usr/src/ usr/src
mount | sed -e "/$(sed -e 's,/,\\\/,g' <<< $DIR)/d" > etc/mtab
chroot .
umount proc
umount dev
umount usr/portage
umount home/${USER}
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-30 14:53:24 | 显示全部楼层
1. debugemerge去掉sudo调用,加入root身份判断

2. 加入一个chroot.sh脚本
http://www.gentoo-cn.org/gitweb/ ... cbd06b8d1cb978b1a02
cd $DIR
cp -L /etc/resolv.conf etc
cp -L /etc/fstab etc
mount -t proc none proc
mount --bind /dev dev
[ -d usr/portage ] || sudo mkdir usr/portage
mount --bind /usr/portage usr/portage
mount --bind /home/${USER} home/${USER}
mount --bind /usr/src/ usr/src
mount | sed -e "/$(sed -e 's,/,\\\/,g' <<< $DIR)/d" > etc/mtab
chroot .
umount proc
umount dev
umount usr/portage
umount home/${USER}
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表