mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
Instead of replicating the Makefile devices.tar.gz rule in the package() APKBUILD function.
20 lines
318 B
Bash
Executable File
20 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
# Use this instead of packaging makedev.
|
|
|
|
# Exit on failure.
|
|
set -e
|
|
|
|
# Create devices in $PWD.
|
|
ln -s /proc/self/fd fd
|
|
ln -s fd/0 stdin
|
|
ln -s fd/1 stdout
|
|
ln -s fd/2 stderr
|
|
mknod full c 1 7
|
|
mknod null c 1 3
|
|
mknod ptmx c 5 2
|
|
mkdir pts shm
|
|
mknod random c 1 8
|
|
mknod tty c 5 0
|
|
mknod urandom c 1 9
|
|
mknod zero c 1 5
|