LINUX_MAKEDEV revision 1.1
11.1Schristos#!/bin/sh - 21.1Schristos# $NetBSD: LINUX_MAKEDEV,v 1.1 2006/09/22 15:33:08 christos Exp $ 31.1Schristos# 41.1Schristos# Copyright (c) 1995 Christos Zoulas 51.1Schristos# All rights reserved. 61.1Schristos# 71.1Schristos# Redistribution and use in source and binary forms, with or without 81.1Schristos# modification, are permitted provided that the following conditions 91.1Schristos# are met: 101.1Schristos# 1. Redistributions of source code must retain the above copyright 111.1Schristos# notice, this list of conditions and the following disclaimer. 121.1Schristos# 2. Redistributions in binary form must reproduce the above copyright 131.1Schristos# notice, this list of conditions and the following disclaimer in the 141.1Schristos# documentation and/or other materials provided with the distribution. 151.1Schristos# 3. The names of the authors may not be used to endorse or promote products 161.1Schristos# derived from this software without specific prior written permission 171.1Schristos# 181.1Schristos# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 191.1Schristos# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 201.1Schristos# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 211.1Schristos# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 221.1Schristos# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 231.1Schristos# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 241.1Schristos# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 251.1Schristos# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 261.1Schristos# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 271.1Schristos# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 281.1Schristos# 291.1Schristos# Device "make" file. Valid arguments: 301.1Schristos# all everything 311.1Schristos# Terminal devices: 321.1Schristos# ptmx pty master multiplexer 331.1Schristos# 341.1SchristosPATH=/sbin:/bin/:/usr/bin:/usr/sbin:/usr/etc 351.1Schristosumask 77 361.1Schristos 371.1Schristosfor i 381.1Schristosdo 391.1Schristos 401.1Schristoscase $i in 411.1Schristos 421.1Schristosall) 431.1Schristos sh LINUX_MAKEDEV ptmx 441.1Schristos ;; 451.1Schristos 461.1Schristosptmx) 471.1Schristos rm -f $i 481.1Schristos mknod $i c 165 2 491.1Schristos chown root.wheel $i 501.1Schristos chmod 666 $i 511.1Schristos ;; 521.1Schristos 531.1Schristos*) 541.1Schristos echo $i: unknown device 2>&1 551.1Schristos exit 1 561.1Schristos ;; 571.1Schristosesac 581.1Schristosdone 59