aboutsummaryrefslogtreecommitdiff
path: root/rc.lib
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-01 17:57:12 +0300
committerCem Keylan <cem@ckyln.com>2020-06-01 17:57:12 +0300
commit49774766cb2f9a8313b10133d66ab87703de72d1 (patch)
tree84e88bc95830f90cec461565ebe1f83a073a0c8e /rc.lib
parent58862d66fb1e9fa5d6781c97ad5c04b0297a36fe (diff)
downloadinit-49774766cb2f9a8313b10133d66ab87703de72d1.tar.gz
init: use link function to link IO devices
Diffstat (limited to 'rc.lib')
-rw-r--r--rc.lib5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.lib b/rc.lib
index 1df98ff..b096ec7 100644
--- a/rc.lib
+++ b/rc.lib
@@ -75,6 +75,11 @@ device_helper() {
esac
}
+link() {
+ ln -sf "$1" "$2"
+ printf '%s ==> %s\n' "$2" "$1"
+}
+
mounted() {
[ -e "$1" ] &&
[ -f /proc/mounts ] &&