diff options
Diffstat (limited to 'recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend')
-rw-r--r-- | recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend new file mode 100644 index 00000000..a14f28b4 --- /dev/null +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | |||
@@ -0,0 +1,21 @@ | |||
1 | |||
2 | pkg_postinst_${PN} () { | ||
3 | #!/bin/sh | ||
4 | # run this on the target | ||
5 | if [ "x$D" == "x" ]; then | ||
6 | tmp="${SERIAL_CONSOLES_CHECK}" | ||
7 | for i in $tmp | ||
8 | do | ||
9 | j=`echo ${i} | sed s/^.*\;//g` | ||
10 | if [ -z "`cat /proc/consoles | grep ${j}`" ]; then | ||
11 | sed -i /^.*${j}$/d /etc/inittab | ||
12 | fi | ||
13 | done | ||
14 | kill -HUP 1 | ||
15 | elif [ -d "$D" ]; then | ||
16 | exit 0 | ||
17 | else | ||
18 | exit 1 | ||
19 | fi | ||
20 | } | ||
21 | |||