| 1 | #! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). () { |
| 4 | rmscip-shell system . . rm. -f /dev/$1 |
| 5 | mknodscip-shell system . . mknod. /dev/$1 $5 $6 $7 |
| 6 | chownscip-shell system . . chown. $2:$3 /dev/$1 |
| 7 | chmodscip-shell system . . chmod. $4 /dev/$1 |
| 8 | } |
| 9 | |
| 10 | do_dirscip-shell shell cdebootstrap 0.7.9 do_dir(). () { |
| 11 | rmscip-shell system . . rm. -f /dev/$1 |
| 12 | mkdirscip-shell system . . mkdir. /dev/$1 |
| 13 | chownscip-shell system . . chown. $2:$3 /dev/$1 |
| 14 | chmodscip-shell system . . chmod. $4 /dev/$1 |
| 15 | } |
| 16 | |
| 17 | case "$1" in |
| 18 | configure) |
| 19 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). null 0 0 666 c 1 3 |
| 20 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). zero 0 0 666 c 1 5 |
| 21 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). full 0 0 666 c 1 7 |
| 22 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). random 0 0 666 c 1 8 |
| 23 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). urandom 0 0 666 c 1 9 |
| 24 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). tty 0 0 666 c 5 0 |
| 25 | do_devscip-shell shell cdebootstrap 0.7.9 do_dev(). ptmx 0 0 666 c 5 2 |
| 26 | do_dirscip-shell shell cdebootstrap 0.7.9 do_dir(). pts 0 0 755 |
| 27 | do_dirscip-shell shell cdebootstrap 0.7.9 do_dir(). shm 0 0 755 |
| 28 | lnscip-shell system . . ln. -s /proc/self/fdscip-shell filesystem . . `/proc/self/fd`. /dev/fdscip-shell filesystem . . `/dev/fd`. |
| 29 | lnscip-shell system . . ln. -s /proc/self/fd/0scip-shell filesystem . . `/proc/self/fd/0`. /dev/stdinscip-shell filesystem . . `/dev/stdin`. |
| 30 | lnscip-shell system . . ln. -s /proc/self/fd/1scip-shell filesystem . . `/proc/self/fd/1`. /dev/stdoutscip-shell filesystem . . `/dev/stdout`. |
| 31 | lnscip-shell system . . ln. -s /proc/self/fd/2scip-shell filesystem . . `/proc/self/fd/2`. /dev/stderrscip-shell filesystem . . `/dev/stderr`. |
| 32 | ;; |
| 33 | |
| 34 | abort-upgrade|abort-remove|abort-deconfigure) |
| 35 | ;; |
| 36 | |
| 37 | *) |
| 38 | echoscip-shell system . . echo. "postinst called with unknown argument \`$1'" >&2 |
| 39 | exit 1 |
| 40 | ;; |
| 41 | esac |
| 42 | |
| 43 | exit 0 |