LINUX.ORG.RU

История изменений

Исправление ubuntuawp, (текущая версия) :

#!/bin/bash
#true-get: make you system true
#1.2pre by ubuntuawp

_truedistro="Debian"
_aarch=$(uname -m|| (echo "util-linux is not installed. Fail";exit 1)
_getarch() { ( [ "${_aarch}" = "amd64" ] && _arch=amd64 ) || _arch=i386
_mirror="http://mirror.yandex.ru/debian"
_kernelpath="dists/stable/main/installer_${_arch}/current/images/netboot/debian-installer/i386"
_getkexec() { (which kexec || (for _path in $PATH;do _workpath=$_path;test -e $_path/kexec && _kexec-bin="$_path/kexec") || (echo "No kexec found! Install kexec app";exit 1) }
_getdownloader() { (which curl && _getbin=curl) || (which wget && _getbin=wget) }

echo "Prepared. Now downloading...";sleep 3
cd /tmp[br]mkdir debian-installer[br]cd debian-installer
${_getbin} "${_mirror}/${_kernelpath}"
( (kexec -l linux --initrd=initrd.gz || kexec -l -f linux --initrd=initrd.gz) && (echo "Loading debian installer!";sleep 5;kexec -e) || (echo "Kexec stage failed. Error";exit 1)

Исправление ubuntuawp, :

#!/bin/bash[br]#true-get: make you system true[br]#1.2pre by ubuntuawp[br][br]_truedistro="Debian"[br]_aarch=$(uname -m|| (echo "util-linux is not installed. Fail";exit 1)[br]_getarch() { ( [ "${_aarch}" = "amd64" ] && _arch=amd64 ) || _arch=i386[br]_mirror="http://mirror.yandex.ru/debian"[br]_kernelpath="dists/stable/main/installer_${_arch}/current/images/netboot/debian-installer/i386"[br]_getkexec() { (which kexec || (for _path in $PATH;do _workpath=$_path;test -e $_path/kexec && _kexec-bin="$_path/kexec") || (echo "No kexec found! Install kexec app";exit 1) }[br]_getdownloader() { (which curl && _getbin=curl) || (which wget && _getbin=wget) }[br][br]echo "Prepared. Now downloading...";sleep 3[br]cd /tmp[br]mkdir debian-installer[br]cd debian-installer[br]${_getbin} "${_mirror}/${_kernelpath}"[br]( (kexec -l linux --initrd=initrd.gz || kexec -l -f linux --initrd=initrd.gz) && (echo "Loading debian installer!";sleep 5;kexec -e) || (echo "Kexec stage failed. Error";exit 1)

Исходная версия ubuntuawp, :

#!/bin/bash
#true-get: make you system true
#1.2pre by ubuntuawp

_truedistro=«Debian»
_aarch=$(uname -m|| (echo «util-linux is not installed. Fail»;exit 1)
_getarch() { ( [ «${_aarch}» = «amd64» ] && _arch=amd64 ) || _arch=i386
_mirror="http://mirror.yandex.ru/debian"
_kernelpath=«dists/stable/main/installer_${_arch}/current/images/netboot/debian-installer/i386»
_getkexec() { (which kexec || (for _path in $PATH;do _workpath=$_path;test -e $_path/kexec && _kexec-bin=«$_path/kexec») || (echo «No kexec found! Install kexec app»;exit 1) }
_getdownloader() { (which curl && _getbin=curl) || (which wget && _getbin=wget) }

echo «Prepared. Now downloading...»;sleep 3
cd /tmp
mkdir debian-installer
cd debian-installer
${_getbin} «${_mirror}/${_kernelpath}»
( (kexec -l linux --initrd=initrd.gz || kexec -l -f linux --initrd=initrd.gz) && (echo «Loading debian installer!»;sleep 5;kexec -e) || (echo «Kexec stage failed. Error»;exit 1)