Home
Repository 32bit  Forum
Repository 64bit  Wiki

Modifiche

Slackware Chroot AutoBuilder

226 byte aggiunti, 10:08, 2 dic 2010
Script
{
version=$main_ver.$min_ver
if [ `uname -m` = i386 -o `uname -m` = i486 -o `uname -m` = i586 -o `uname -m` = i686 ]; then
if [ "$main_ver" -lt "10" ]; then
echo -e " \E[31mThis version is not supported\E[0m"
architecture_check()
{
if [ `uname -m` = i386 ]; then echo -o e " \E[31mThis architecture is not more supported\E[0m" exit 1 elif [ `uname -m` = i486 -o `uname -m` = i586 -o `uname -m` = i686 ]; then
SLACK=slackware
DISTRO=Slackware
echo " [2] x86_64"
echo
echo -n " Option: "
read arch
echo -n " Option: "
case "$arch" in
echo -n " Patching $DISTRO... "
ROOT=$CHROOTDIR upgradepkg --reinstall --install-new *.t?z > /dev/null 2>&1
if [ -d linux-* ]; then
cd linux-*
ROOT=$CHROOTDIR upgradepkg --reinstall --install-new *.t?z > /dev/null 2>&1
fi
echo -e "\E[32mDONE\E[0m"
;;
45
contributi