Do not overload mount-call - trying to reduce confusion
[openwrt/svn-archive/archive.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 -o noatime -t devpts devpts /dev/pts
11 }
12
13 boot_hook_add preinit_essential init_devpts
14 boot_hook_add preinit_essential do_mount_devpts
15