Skip to content

Commit 178efe7

Browse files
committed
Added documentation
1 parent eb4ed4d commit 178efe7

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

Diff for: README.md

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Scripts
22
=======
3-
This repository contains a collection of my personal scripts. I use them under Ubuntu, it can be mapped on other debian-distributions.
3+
This repository contains a collection of my personal scripts. I use them under <a href="https://www.manjaro.org">Manjaro</a>.
44

55
TODO: Complete documentation.
66

77
backup.sh
88
==========
9-
Own backup script of HOME, grub and anacrontab. It creates a .tar.7z archive (also can be encrypted).
9+
Own backup script of HOME (and some other config files). It creates a .tar.7z archive (can also be encrypted).
1010

1111
cleaner-arch.sh
1212
===============
@@ -36,9 +36,21 @@ hdd-usage.sh
3636
============
3737
Shows the HDD usage. Using <CODE>df -H</CODE> command.
3838

39-
upgrade-ums.sh
40-
===================
41-
A script that upgrades <a href="http://www.universalmediaserver.com/">Universal Media Server</a>.
39+
nfs-start.sh
40+
============
41+
Mounts and starts (with <CODE>systemctl</CODE>) a NFS. Configuration parameters:
42+
- <CODE>MOUNT_OPTIONS</CODE> - Mounts options of for the exports file
43+
- <CODE>MOVIES_DISK_PATH</CODE> - Folder path
44+
- <CODE>TVSHOWS_DISK_PATH</CODE> - Folder path
45+
- <CODE>MOVIES_NFS_PATH</CODE> - NFS path
46+
- <CODE>TVSHOWS_NFS_PATH</CODE> - NFS path
47+
- <CODE>EXPORTS_FILE_PATH</CODE> - Path of the exports config (<CODE>/etc/exports</CODE>)
48+
49+
nfs-stop.sh
50+
============
51+
Stops, unmounts and removes the NFS. Configuration parameters:
52+
- <CODE>MOVIES_STRING</CODE> - NFS path
53+
- <CODE>TVSHOWS_STRING</CODE> - NFS path
4254

4355
toggletouchpad.sh
4456
=================
@@ -54,3 +66,7 @@ There are two configuration parameter:
5466
update-grub.sh
5567
==============
5668
A simple script for my arch system, which runs <CODE>grub-mkconfig -o /boot/grub/grub.cfg "$@"</CODE>.
69+
70+
upgrade-ums.sh
71+
===================
72+
A script that upgrades <a href="https://www.universalmediaserver.com">Universal Media Server</a>.

Diff for: nfs-start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/bin/sh
22

3+
# --- CONFIG ---------------------------------------------------
34
MOUNT_OPTIONS="192.168.0.1/24(ro,no_subtree_check,insecure,sync)"
45
MOVIES_DISK_PATH="/run/media/baizon/Data/Movies"
56
TVSHOWS_DISK_PATH="/run/media/baizon/Data/TVShows"
67
MOVIES_NFS_PATH="/srv/nfs/Movies"
78
TVSHOWS_NFS_PATH="/srv/nfs/TVShows"
89
EXPORTS_FILE_PATH="/etc/exports"
10+
# --------------------------------------------------------------
911

1012
addNfsDir() {
1113
if [ ! -d "$1" ]; then

Diff for: nfs-stop.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
MOVIES_STRING="/srv/nfs/Movies"
44
TVSHOWS_STRING="/srv/nfs/TVShows"
55

6+
echo "Stopping NFS service..."
7+
sudo systemctl stop nfs-server
8+
69
echo "Unmounting Movies directory..."
710
sudo umount $MOVIES_STRING
811
echo "Removing $MOVIES_STRING"
@@ -12,6 +15,3 @@ echo "Unmounting TV Shows directory..."
1215
sudo umount $TVSHOWS_STRING
1316
echo "Removing $TVSHOWS_STRING"
1417
sudo rm -rf $TVSHOWS_STRING
15-
16-
echo "Stopping NFS service..."
17-
sudo systemctl stop nfs-server

0 commit comments

Comments
 (0)