diff options
author | Cem Keylan <cem@ckyln.com> | 2020-08-15 00:46:16 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-08-15 00:46:16 +0300 |
commit | 2b9f5022b1ab610c1e6a03e2415fc77ad8833160 (patch) | |
tree | 669a1391d012346cdaff8ddedb07757bcf92a3dc | |
parent | 9c844bce3ca55c8693c6a96c3fb38fce6339d1ec (diff) | |
download | init-2b9f5022b1ab610c1e6a03e2415fc77ad8833160.tar.gz |
link(): remove function
-rwxr-xr-x | rc.boot | 8 | ||||
-rw-r--r-- | rc.lib | 5 |
2 files changed, 4 insertions, 9 deletions
@@ -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 } @@ -77,11 +77,6 @@ device_helper() { esac } -link() { - ln -sf "$1" "$2" - printf '%s ==> %s\n' "$2" "$1" -} - mounted() { [ -e "$1" ] && [ -f /proc/mounts ] && |