diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 1 | ||||
-rw-r--r-- | scripts/userfs.service | 10 | ||||
-rwxr-xr-x | scripts/volumefs.init | 4 | ||||
-rw-r--r-- | scripts/volumefs.service | 11 |
4 files changed, 24 insertions, 2 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am new file mode 100644 index 0000000..3a3d7b7 --- /dev/null +++ b/scripts/Makefile.am @@ -0,0 +1 @@ +dist_noinst_DATA = volumefs.service userfs.service diff --git a/scripts/userfs.service b/scripts/userfs.service new file mode 100644 index 0000000..fe675ae --- /dev/null +++ b/scripts/userfs.service @@ -0,0 +1,10 @@ +[Unit] +Description=Populates /Users directory +RequiresMountsFor=/etc + +[Service] +Type=simple +ExecStart=/usr/sbin/userfs -f -o allow_other -o auto_unmount /Users + +[Install] +WantedBy=multi-user.target diff --git a/scripts/volumefs.init b/scripts/volumefs.init index dc80eed..6cc3cb9 100755 --- a/scripts/volumefs.init +++ b/scripts/volumefs.init @@ -9,8 +9,8 @@ depend() start() { - /usr/sbin/volumesfs -o allow_other /Volumes - /usr/sbin/usersfs -o allow_other /Users + /usr/sbin/volumefs -o allow_other /Volumes + /usr/sbin/userfs -o allow_other /Users } stop() diff --git a/scripts/volumefs.service b/scripts/volumefs.service new file mode 100644 index 0000000..dd8a194 --- /dev/null +++ b/scripts/volumefs.service @@ -0,0 +1,11 @@ +[Unit] +Description=Populates /Volumes directory +Requires=udisks2.service +After=udisks2.service + +[Service] +Type=simple +ExecStart=/usr/sbin/volumefs -f -o allow_other -o auto_unmount /Volumes + +[Install] +WantedBy=multi-user.target |