summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/gpm/files/gpm.init28
-rw-r--r--package/gpm/files/gpm.postinst4
-rw-r--r--target/lemote/files/etc/inittab7
-rw-r--r--target/linux/config/Config.in.debug1
4 files changed, 40 insertions, 0 deletions
diff --git a/package/gpm/files/gpm.init b/package/gpm/files/gpm.init
new file mode 100644
index 000000000..812fc1bf7
--- /dev/null
+++ b/package/gpm/files/gpm.init
@@ -0,0 +1,28 @@
+#!/bin/sh
+#PKG gpm
+#INIT 80
+
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${gpm:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/gpm $gpm_flags
+ ;;
+stop)
+ pkill gpm
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/gpm/files/gpm.postinst b/package/gpm/files/gpm.postinst
new file mode 100644
index 000000000..82e63cf25
--- /dev/null
+++ b/package/gpm/files/gpm.postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf 'options passed to gpm' gpm_flags "-m /dev/psaux -t ps2"
+add_rcconf gpm gpm NO
diff --git a/target/lemote/files/etc/inittab b/target/lemote/files/etc/inittab
index f14e0d568..6e32240bd 100644
--- a/target/lemote/files/etc/inittab
+++ b/target/lemote/files/etc/inittab
@@ -1,3 +1,10 @@
::sysinit:/etc/init.d/rcS
::shutdown:/etc/init.d/rcK
tty1::respawn:/sbin/getty -i -L tty1 115200 vt100
+tty2::respawn:/sbin/getty -i -L tty2 115200 vt100
+tty3::respawn:/sbin/getty -i -L tty3 115200 vt100
+tty4::respawn:/sbin/getty -i -L tty4 115200 vt100
+tty5::respawn:/sbin/getty -i -L tty5 115200 vt100
+tty6::respawn:/sbin/getty -i -L tty6 115200 vt100
+tty7::respawn:/sbin/getty -i -L tty7 115200 vt100
+tty11::respawn:/sbin/logread -f
diff --git a/target/linux/config/Config.in.debug b/target/linux/config/Config.in.debug
index 57927f3ec..87fc57052 100644
--- a/target/linux/config/Config.in.debug
+++ b/target/linux/config/Config.in.debug
@@ -42,6 +42,7 @@ config ADK_KERNEL_DEBUG_WITH_KGDB
prompt "Enable remote kernel debugging using KGDB"
depends on ADK_TARGET_ROOTFS_NFSROOT || \
ADK_TARGET_ROOTFS_EXT2_BLOCK || \
+ ADK_TARGET_ROOTFS_YAFFS || \
ADK_TARGET_ROOTFS_EXT2
default n
select ADK_KERNEL_DEBUG_KERNEL