diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-05-30 11:13:06 -0500 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-05-30 11:13:47 -0500 |
commit | ef3e0b89e65ecc1bdcb0463d89dac8077dc45d34 (patch) | |
tree | b67795c75e275b0bc950465e179d0915c27afa8e /package/adkinstall | |
parent | 0675606344755ff29977e79c7f8309ce2ad4917a (diff) |
add support for pcengines-alix
Readd Alix2d support, tested via NFS boot.
Fix IPSec kernel module loading.
Diffstat (limited to 'package/adkinstall')
-rw-r--r-- | package/adkinstall/Makefile | 4 | ||||
-rw-r--r-- | package/adkinstall/src/adkinstall | 31 |
2 files changed, 32 insertions, 3 deletions
diff --git a/package/adkinstall/Makefile b/package/adkinstall/Makefile index 3702ca698..1674d6d75 100644 --- a/package/adkinstall/Makefile +++ b/package/adkinstall/Makefile @@ -6,12 +6,12 @@ include ${ADK_TOPDIR}/rules.mk PKG_NAME:= adkinstall PKG_VERSION:= 2.0 PKG_RELEASE:= 3 -PKG_DESCR:= adk disk/flash installer +PKG_DESCR:= disk/flash installer PKG_SECTION:= base/misc PKG_DEPENDS:= mke2fs parted sfdisk dosfstools mksh PKG_CFLINE_ADKINSTALL:= select ADK_KERNEL_EXT4_FS -PKG_SYSTEM_DEPENDS:= mikrotik-rb532 lemote-yeelong pcengines-apu ibm-x40 +PKG_SYSTEM_DEPENDS:= mikrotik-rb532 lemote-yeelong pcengines-apu pcengines-alix ibm-x40 PKG_DEPENDS_PCENGINES_APU:= grub grub-tools PKG_DEPENDS_IBM_X40:= grub grub-tools NO_DISTFILES:= 1 diff --git a/package/adkinstall/src/adkinstall b/package/adkinstall/src/adkinstall index f0d901fdb..a67bcdaf4 100644 --- a/package/adkinstall/src/adkinstall +++ b/package/adkinstall/src/adkinstall @@ -44,6 +44,14 @@ EOF exit 1 } +function pcengines-alix-help { + cat >&2 <<EOF +Syntax: adkinstall <archive> + -f: filesystem (default ext4) + -h: help text +EOF + exit 1 +} case $target { (ibm-x40) @@ -92,6 +100,27 @@ case $target { archive=$1 fi ;; +(pcengines-alix) + cfgfssize=32768 + fs=ext4 + while getopts "f:" ch; do + case $ch in + f) + fs=$OPTARG + ;; + *) + pcengines-alix-help + exit 1 + ;; + esac + done + shift $((OPTIND - 1)) + if [ -z $1 ];then + pcengines-alix-help + else + archive=$1 + fi + ;; (mikrotik-rb532) cfgfssize=32768 nand=0 @@ -258,7 +287,7 @@ case $target { fix_perm /mnt umount /mnt ;; -(pcengines-apu) +(pcengines-apu|pcengines-alix) get_max_size /dev/sda create_label /dev/sda create_partition /dev/sda ext2 16385 $rootsize |