aboutsummaryrefslogtreecommitdiff
path: root/local/bin/elektroline00
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin/elektroline00')
-rwxr-xr-xlocal/bin/elektroline0024
1 files changed, 12 insertions, 12 deletions
diff --git a/local/bin/elektroline00 b/local/bin/elektroline00
index b06ae4e..0d6520b 100755
--- a/local/bin/elektroline00
+++ b/local/bin/elektroline00
@@ -8,21 +8,21 @@ usage() {
umount="n"
while getopts "u" opt; do
case "$opt" in
- u)
- umount="y"
- ;;
- *)
- usage
- exit 2
- ;;
+ u)
+ umount="y"
+ ;;
+ *)
+ usage
+ exit 2
+ ;;
esac
done
if [ "$umount" = "n" ]; then
- sudo mkdir -p "$path"/{company,elektro_doc,czelldata}
- sudo mount.cifs -o username=kkoci "//Elektroline00/company" "$path/company"
- sudo mount.cifs -o username=kkoci "//Elektroline00/elektro_doc" "$path/elektro_doc"
- sudo mount.cifs -o username=kkoci "//czelldata/Share" "$path/czelldata"
+ sudo mkdir -p "$path"
+ sudo mount.cifs -o username=kkoci,uid=1000 "//czelldata.elektroline.cz/Share" "$path"
+ #sudo mount.cifs -o username=kkoci "//Elektroline00/company" "$path/company"
+ #sudo mount.cifs -o username=kkoci "//Elektroline00/elektro_doc" "$path/elektro_doc"
else
- sudo umount "$path/company" "$path/elektro_doc"
+ sudo umount "$path"
fi