2d5010b9122dc86f4b179003c4173552e4297ac2
[openwrt/openwrt.git] / package / base-files / files / lib / preinit / 40_mount_devpts
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4
5 init_devpts() {
6 [ -d /dev/pts ] || mkdir -p /dev/pts
7 }
8
9 do_mount_devpts() {
10 mount devpts /dev/pts -t devpts
11 }
12
13 boot_hook_add preinit_essential init_devpts
14 boot_hook_add preinit_essential do_mount_devpts
15