summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit/40_mount_devpts
blob: b75d692878bce382aa4a34fe797cdfb83031dafd (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 -t devpts devpts /dev/pts
}

boot_hook_add preinit_essential init_devpts
boot_hook_add preinit_essential do_mount_devpts