summaryrefslogtreecommitdiff
path: root/mount-data/files
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-08-12 16:19:39 +0200
committerKarel Kočí <cynerd@email.cz>2020-08-12 16:19:39 +0200
commitbf24e13ee81a77aa39e2af11f4a778c7bef39f0b (patch)
treefc0c00a1ba6f7c179999acdc6c325f3a0b9e4075 /mount-data/files
parentb2f7f1e3f09d532f55fc3e215a81cdd007b634dd (diff)
downloadopenwrt-personal-pkgs-bf24e13ee81a77aa39e2af11f4a778c7bef39f0b.tar.gz
openwrt-personal-pkgs-bf24e13ee81a77aa39e2af11f4a778c7bef39f0b.tar.bz2
openwrt-personal-pkgs-bf24e13ee81a77aa39e2af11f4a778c7bef39f0b.zip
mount-data: create package
Diffstat (limited to 'mount-data/files')
-rwxr-xr-xmount-data/files/init24
1 files changed, 24 insertions, 0 deletions
diff --git a/mount-data/files/init b/mount-data/files/init
new file mode 100755
index 0000000..d1362e2
--- /dev/null
+++ b/mount-data/files/init
@@ -0,0 +1,24 @@
+#!/bin/sh /etc/rc.common
+
+START=36
+STOP=90
+
+status() {
+ findmnt >/dev/null /data
+}
+
+start() {
+ status || mount -o subvol=@data UUID=7dc606e7-39e0-4320-9ff6-83a10f163e54 /data
+}
+
+stop() {
+ umount -fl /data
+}
+
+restart() {
+ :
+}
+
+reload() {
+ :
+}