summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index 5b9c422caf..8585a418ab 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -53,8 +53,15 @@ EOF
53} 53}
54 54
55pkg_postinst_${PN} () { 55pkg_postinst_${PN} () {
56# run this on host and on target
57if [ "${SERIAL_CONSOLES_CHECK}" = "" ]; then
58 exit 0
59fi
60}
61
62pkg_postinst_ontarget_${PN} () {
56# run this on the target 63# run this on the target
57if [ "x$D" = "x" ] && [ -e /proc/consoles ]; then 64if [ -e /proc/consoles ]; then
58 tmp="${SERIAL_CONSOLES_CHECK}" 65 tmp="${SERIAL_CONSOLES_CHECK}"
59 for i in $tmp 66 for i in $tmp
60 do 67 do
@@ -68,11 +75,7 @@ if [ "x$D" = "x" ] && [ -e /proc/consoles ]; then
68 done 75 done
69 kill -HUP 1 76 kill -HUP 1
70else 77else
71 if [ "${SERIAL_CONSOLES_CHECK}" = "" ]; then 78 exit 1
72 exit 0
73 else
74 exit 1
75 fi
76fi 79fi
77} 80}
78 81