aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-core
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-09-17 18:19:46 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2013-09-17 18:19:46 +0300
commit035d261cb07edacaa88d9c75df778e1d0191869c (patch)
treeb4b87550af6c2f488ce9255e66f815e514fb8f6d /meta-linaro/recipes-core
parent0a64a82cdf9a1a33016abc66a510ce4b29ecf1f1 (diff)
downloadmeta-linaro-035d261cb07edacaa88d9c75df778e1d0191869c.tar.gz
minimal-initramfs: fix tty permissions and drop exec
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'meta-linaro/recipes-core')
-rwxr-xr-xmeta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh b/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh
index c3f24d84..b342ce63 100755
--- a/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh
+++ b/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh
@@ -12,11 +12,17 @@ early_setup() {
ln -s /run /var/run
- mknod /dev/ttyO0 c 253 0
- mknod /dev/ttyO2 c 253 2
+ # ARM AMBA SoCs
mknod /dev/ttyAMA0 c 204 64
mknod /dev/ttyAMA2 c 204 66
+ # Samsung ARM SoCs
mknod /dev/ttySAC2 c 204 66
+ # TI OMAP SoCs
+ mknod /dev/ttyO0 c 249 0
+ mknod /dev/ttyO2 c 249 2
+
+ chmod 0666 /dev/tty*
+ chown root:tty /dev/tty*
}
read_args() {
@@ -40,4 +46,4 @@ read_args() {
early_setup
read_args
-exec setsid sh -l </dev/${port} >/dev/${port} 2>&1
+setsid sh -l </dev/${port} >/dev/${port} 2>&1