blob: 801f18c2606474df1b13be10d6f5facf45c6828c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
DESCRIPTION = "A text-based bootmanager allowing a Zaurus to boot from SD or CF. \
Tested machines: Collie"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Matthias 'CoreDump' Hentges <oe@hentges.net>"
LICENSE = "GPL"
PV = "0.0.1+cvs-${CVSDATE}"
PR = "r2"
SRC_URI = "cvs://anonymous@hentges.net/hentgescvs;module=hentgescvs/hentges-utils/files;method=pserver \
file://altboot.cfg"
S = "${WORKDIR}/files"
do_install() {
install -d ${D}/sbin
install -d ${D}/etc/altboot-menu
install -d ${D}/usr/share/doc/altboot
install -m 0644 ${WORKDIR}/altboot.cfg ${D}/etc
install -m 0644 docs/altboot/*.txt ${D}/usr/share/doc/altboot
install -m 0755 init.altboot ${D}/sbin
install -m 0755 altboot-menu/*-* ${D}/etc/altboot-menu
}
pkg_postinst() {
update-alternatives --install /sbin/init init /sbin/init.altboot 55
}
pkg_postrm() {
update-alternatives --remove init /sbin/init.altboot
}
|