aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit/40_mount_devpts
blob: 2d5010b9122dc86f4b179003c4173552e4297ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2010 Vertical Communications

init_devpts() {
    [ -d /dev/pts ] || mkdir -p /dev/pts
}

do_mount_devpts() {
    mount devpts /dev/pts -t devpts
}

boot_hook_add preinit_essential init_devpts
boot_hook_add preinit_essential do_mount_devpts