Root/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
5init_devpts() {
6    [ -d /dev/pts ] || mkdir -p /dev/pts
7}
8
9do_mount_devpts() {
10    mount devpts /dev/pts -t devpts
11}
12
13boot_hook_add preinit_essential init_devpts
14boot_hook_add preinit_essential do_mount_devpts
15
16

Archive Download this file



interactive