aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-08-15 00:46:16 +0300
committerCem Keylan <cem@ckyln.com>2020-08-15 00:46:16 +0300
commit2b9f5022b1ab610c1e6a03e2415fc77ad8833160 (patch)
tree669a1391d012346cdaff8ddedb07757bcf92a3dc
parent9c844bce3ca55c8693c6a96c3fb38fce6339d1ec (diff)
downloadinit-2b9f5022b1ab610c1e6a03e2415fc77ad8833160.tar.gz
link(): remove function
-rwxr-xr-xrc.boot8
-rw-r--r--rc.lib5
2 files changed, 4 insertions, 9 deletions
diff --git a/rc.boot b/rc.boot
index 56b0460..cf0f855 100755
--- a/rc.boot
+++ b/rc.boot
@@ -26,10 +26,10 @@ out "Mounting pseudo filesystems..."; {
mnt mode=1777,nosuid,nodev tmpfs shm /dev/shm
{
- link /proc/self/fs /dev/fd
- link fd/0 /dev/stdin
- link fd/1 /dev/stdout
- link fd/2 /dev/stderr
+ ln -sf /proc/self/fs /dev/fd
+ ln -sf fd/0 /dev/stdin
+ ln -sf fd/1 /dev/stdout
+ ln -sf fd/2 /dev/stderr
} 2>/dev/null
}
diff --git a/rc.lib b/rc.lib
index bff6f1f..81eed0f 100644
--- a/rc.lib
+++ b/rc.lib
@@ -77,11 +77,6 @@ device_helper() {
esac
}
-link() {
- ln -sf "$1" "$2"
- printf '%s ==> %s\n' "$2" "$1"
-}
-
mounted() {
[ -e "$1" ] &&
[ -f /proc/mounts ] &&