Add conf to setup script
This commit is contained in:
parent
f8438cb6d9
commit
49f2a2acd6
@ -3,12 +3,17 @@ set -x
|
|||||||
|
|
||||||
# Sets up all kinds of softlinks and scripts to share all gentoo/portage
|
# Sets up all kinds of softlinks and scripts to share all gentoo/portage
|
||||||
# across multiple machines backed by git repository
|
# across multiple machines backed by git repository
|
||||||
SBIN_PREFIX="/usr/local/sbin"
|
|
||||||
SBIN_FROM="update_portage.sh update_box.sh make_kernel.sh"
|
|
||||||
SBIN_TO="/mnt/portage/overlays/quarks/scripts"
|
|
||||||
|
|
||||||
pushd $SBIN_PREFIX > /dev/null
|
link() {
|
||||||
for i in $SBIN_FROM; do
|
FROM=$1
|
||||||
[ -e $i ] || ln -s $SBIN_TO/$i $i
|
TO=$2
|
||||||
done
|
PREFIX=$3
|
||||||
popd > /dev/null
|
pushd $PREFIX > /dev/null
|
||||||
|
for i in $FROM; do
|
||||||
|
[ -e $i ] || ln -s $TO/$i $i
|
||||||
|
done
|
||||||
|
popd > /dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
link "update_portage.sh update_box.sh make_kernel.sh" "/mnt/portage/overlays/quarks/scripts" "/usr/local/sbin"
|
||||||
|
link "make.conf package.use package.keywords package.license" "/mnt/portage/overlays/quarks/conf/portage" "/etc/portage"
|
||||||
|
Loading…
Reference in New Issue
Block a user