diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-02 08:17:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-02 08:18:07 +0200 |
commit | f0066beb4d617c93d69d2a5308a2a19dffa13b3c (patch) | |
tree | 506e10a6f715654658e3b941c4366bd3080ac0b5 /package/adkinstall/src/adkinstall.yeelong | |
parent | 29949a05b6be852c6ad2835b50087dac35b27023 (diff) |
create core package section, cleanup old installer stuff
Diffstat (limited to 'package/adkinstall/src/adkinstall.yeelong')
-rw-r--r-- | package/adkinstall/src/adkinstall.yeelong | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/package/adkinstall/src/adkinstall.yeelong b/package/adkinstall/src/adkinstall.yeelong deleted file mode 100644 index b6735ec54..000000000 --- a/package/adkinstall/src/adkinstall.yeelong +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -# installs a rootfs tar archive from OpenADK onto a disk -# lemote yeelong specific installer - -check_exit() { - if [ $? -ne 0 ];then - echo "Installation failed." - exit 1 - fi -} - -if [ -z $1 ];then - printf "Please give your root tar archive as parameter\n" - exit 1 -fi - -printf "Creating partitions ...\n" -parted -s /dev/sda mklabel msdos -check_exit -sleep 2 -maxsize=$(env LC_ALL=C parted /dev/sda -s unit cyl print |awk '/^Disk/ { print $3 }'|sed -e 's/cyl//') -rootsize=$(($maxsize-2)) -start=0 -rootp=1 -cfgfsp=2 - -parted -s /dev/sda unit cyl mkpart primary ext2 $start $rootsize -check_exit -mke2fs -q /dev/sda1 -check_exit -parted -s /dev/sda unit cyl mkpart primary fat32 $rootsize $maxsize -check_exit -parted -s /dev/sda set $rootp boot on -check_exit -sfdisk --change-id /dev/sda $cfgfsp 88 >/dev/null 2>&1 -check_exit -# settle down -sleep 2 -mount -t ext2 /dev/sda$rootp /mnt -check_exit -printf "Extracting install archive ...\n" -tar -C /mnt -xzpf $1 -check_exit -chmod 1777 /mnt/tmp -chmod 4755 /mnt/bin/busybox - -cat << EOF > /mnt/boot/boot.cfg -default 0 -timeout 3 -showmenu 1 -title OpenADK - kernel (wd0,0)/boot/kernel - args root=/dev/sda1 ro panic=10 -} -EOF - -umount /mnt -printf "Successfully installed. You can reboot now.\n" -exit 0 |