3 # Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 # based on distrib/install-pre by Jacques Gelinas
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 echo install-pre.sh vserver
29 mkdir -p /etc/vservers
30 mkdir -p /vservers 2>/dev/null
33 mkdir -p $VROOT/dev && chmod 755 $VROOT/dev
35 vserver_mknod $VROOT/dev/null c 1 3 666
36 vserver_mknod $VROOT/dev/zero c 1 5 666
37 vserver_mknod $VROOT/dev/full c 1 7 666
38 vserver_mknod $VROOT/dev/random c 1 8 644
39 vserver_mknod $VROOT/dev/urandom c 1 9 644
40 vserver_mknod $VROOT/dev/tty c 5 0 666
41 vserver_mknod $VROOT/dev/ptmx c 5 2 666
42 # We fake this device to help some package managers