]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Sat, 15 Apr 2017 13:01:53 +0000 (15:01 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 15 Apr 2017 22:11:00 +0000 (00:11 +0200)
- added mount-intenso/transport.sh for easy mounting (you need sudo) of sticks
- you may have to customize these as they are scripts from my local system
- removed long ago obsolete projects as they would make it hard having these
  EJBs twice on the system

Signed-off-by: Roland Häder <roland@mxchange.org>
.jprojects.sh
mount-intenso.sh [new file with mode: 0755]
mount-transport.sh [new file with mode: 0755]

index 769724c3d808f8e3b029f51a1d0beab9498ac2e6..989b339b68c13daf000fc32ad3b337dacc4e1bf1 100644 (file)
@@ -16,8 +16,9 @@ LIBRARIES="jcore jcoreee \
        jmailer-ee \
        jcore-swing \
        jcustomer-core jcustomer-lib \
-       jshop-core jshop-ee-lib jshop-ejb \
-       jshop-receipt-lib jshop-receipt-ejb"
+       jproduct-core jproduct-lib \
+       jshop-core jshop-ee-lib \
+       jshop-receipt-lib"
 
 # Applications and their special libs/EJBs
 APPLICATIONS="pizzaservice-core pizzaservice-lib pizzaservice-mailer pizzaservice-ejb pizzaservice-swing \
diff --git a/mount-intenso.sh b/mount-intenso.sh
new file mode 100755 (executable)
index 0000000..2fb7535
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+LABEL="INTENSO"
+MOUNT_POINT="/media/${USER}/${LABEL}"
+DEV_PATH="/dev/disk/by-label/${LABEL}"
+#MOUNT_OPTIONS="rw,nosuid,nodev,noexec,noatime,data=ordered,errors=remount-ro,uid=1000,gid=1000"
+MOUNT_OPTIONS="rw,nosuid,nodev,noexec,noatime,data=ordered,errors=remount-ro"
+
+if [ ! -d "${MOUNT_POINT}" ]
+then
+       sudo mkdir -p ${MOUNT_POINT}
+fi
+
+sudo mount -t ext4 -o "${MOUNT_OPTIONS}" "${DEV_PATH}" "${MOUNT_POINT}"
diff --git a/mount-transport.sh b/mount-transport.sh
new file mode 100755 (executable)
index 0000000..d35e281
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+LABEL="Transport"
+MOUNT_POINT="/media/${USER}/${LABEL}"
+DEV_PATH="/dev/disk/by-label/${LABEL}"
+#MOUNT_OPTIONS="rw,nosuid,nodev,noexec,noatime,data=ordered,errors=remount-ro,uid=1000,gid=1000"
+MOUNT_OPTIONS="rw,nosuid,nodev,noexec,noatime,data=ordered,errors=remount-ro"
+
+if [ ! -d "${MOUNT_POINT}" ]
+then
+       sudo mkdir -p ${MOUNT_POINT}
+fi
+
+sudo mount -t ext4 -o "${MOUNT_OPTIONS}" "${DEV_PATH}" "${MOUNT_POINT}"