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

boot_hook_add preinit_essential init_devpts
boot_hook_add preinit_essential do_mount_devpts