2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="installer"
|
|
|
|
PKG_VERSION="1"
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="http://libreelec.tv/"
|
|
|
|
PKG_URL=""
|
|
|
|
PKG_DEPENDS_TARGET="toolchain busybox newt parted e2fsprogs syslinux grub"
|
|
|
|
PKG_LONGDESC="LibreELEC.tv Install manager to install the system on any disk"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
post_install() {
|
2022-04-28 10:44:15 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_DIR}/scripts/installer ${INSTALL}/usr/bin
|
|
|
|
sed -e "s/@DISTRONAME@/${DISTRONAME}/g" \
|
2022-08-31 21:50:23 +00:00
|
|
|
-e "s/@EXTRA_CMDLINE@/${EXTRA_CMDLINE}/g" \
|
2022-04-28 10:44:15 +00:00
|
|
|
-i ${INSTALL}/usr/bin/installer
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-28 10:44:15 +00:00
|
|
|
mkdir -p ${INSTALL}/etc
|
2022-02-05 14:23:32 +00:00
|
|
|
find_file_path config/installer.conf
|
2022-04-28 10:44:15 +00:00
|
|
|
cp ${FOUND_PATH} ${INSTALL}/etc
|
|
|
|
sed -e "s/@SYSTEM_SIZE@/${SYSTEM_SIZE}/g" \
|
|
|
|
-e "s/@SYSTEM_PART_START@/${SYSTEM_PART_START}/g" \
|
|
|
|
-e "s/@SYSLINUX_PARAMETERS@/${SYSLINUX_PARAMETERS}/g" \
|
|
|
|
-i ${INSTALL}/etc/installer.conf
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
enable_service installer.service
|
|
|
|
}
|