wok-tiny annotate custom-console/receipt @ rev 88
dropbear-without-zlib: fix TARBALL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 14 12:53:50 2013 +0200 (2013-04-14) |
parents | 263f310ed822 |
children | a6d2ddc65590 |
rev | line source |
---|---|
pascal@53 | 1 # SliTaz package receipt. |
pascal@53 | 2 |
pascal@53 | 3 PACKAGE="custom-console" |
pascal@53 | 4 VERSION="1.0" |
pascal@78 | 5 CATEGORY="configuration" |
pascal@53 | 6 SHORT_DESC="Configure a custom console" |
pascal@53 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@55 | 8 WEB_SITE="http://tiny.slitaz.org/" |
pascal@53 | 9 DEPENDS="base-tiny" |
pascal@53 | 10 CONFIG_FILES="/etc/inittab" |
pascal@53 | 11 |
pascal@53 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@53 | 13 genpkg_rules() |
pascal@53 | 14 { |
pascal@53 | 15 mkdir -p $fs/etc |
pascal@53 | 16 } |
pascal@53 | 17 |
pascal@53 | 18 post_install() |
pascal@53 | 19 { |
pascal@88 | 20 sed -i '/^tty[2-9]::/d' $1/etc/inittab |
pascal@53 | 21 sed -i "s|^tty1:.*|$TTYS::respawn:/sbin/getty $SPEED $TTYS|" \ |
pascal@53 | 22 $1/etc/inittab |
pascal@53 | 23 } |
pascal@53 | 24 |
pascal@53 | 25 config_form() |
pascal@53 | 26 { |
pascal@53 | 27 [ -n "$TTYS" ] || TTYS=ttyS0 |
pascal@53 | 28 [ -n "$SPEED" ] || SPEED=38400 |
pascal@53 | 29 cat <<EOT |
pascal@53 | 30 You can launch a serial console (ttyS0, ttyS1 ...) or the lguest console (hvc0) |
pascal@53 | 31 <table> |
pascal@53 | 32 <tr> |
pascal@53 | 33 <td>Device</td> |
pascal@53 | 34 <td><input type="text" name="TTYS" value="$TTYS" /></td> |
pascal@53 | 35 </tr> |
pascal@53 | 36 <tr> |
pascal@53 | 37 <td>Speed</td> |
pascal@53 | 38 <td><input type="text" name="SPEED" value="$SPEED" /></td> |
pascal@53 | 39 </tr> |
pascal@53 | 40 </table> |
pascal@53 | 41 EOT |
pascal@53 | 42 } |