From 9cf6d229dd5ad5d87e30ded23d00d4e9376e6203 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 15 Apr 2017 15:01:53 +0200 Subject: [PATCH] Continued a bit: - 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .jprojects.sh | 5 +++-- mount-intenso.sh | 14 ++++++++++++++ mount-transport.sh | 14 ++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100755 mount-intenso.sh create mode 100755 mount-transport.sh diff --git a/.jprojects.sh b/.jprojects.sh index 769724c..989b339 100644 --- a/.jprojects.sh +++ b/.jprojects.sh @@ -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 index 0000000..2fb7535 --- /dev/null +++ b/mount-intenso.sh @@ -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 index 0000000..d35e281 --- /dev/null +++ b/mount-transport.sh @@ -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}" -- 2.39.5