313 current 2025-02-09 03:08:44 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
19
home/scripts/phone-mount/phone-mount.sh
Normal file
19
home/scripts/phone-mount/phone-mount.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
MOUNT_POINT="/home/synchronous/android_phone"
|
||||
|
||||
# Check if mount point exists, if not, create it
|
||||
if [ ! -d "$MOUNT_POINT" ]; then
|
||||
mkdir -p "$MOUNT_POINT"
|
||||
fi
|
||||
|
||||
simple-mtpfs $MOUNT_POINT
|
||||
|
||||
if mountpoint -q "$MOUNT_POINT"; then
|
||||
echo "Mount was successful."
|
||||
else
|
||||
echo ""
|
||||
echo "Accept the phone prompt!"
|
||||
sleep 5
|
||||
simple-mtpfs $MOUNT_POINT
|
||||
fi
|
||||
5
home/scripts/phone-mount/phone-unmount.sh
Normal file
5
home/scripts/phone-mount/phone-unmount.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
MOUNT_POINT="/home/synchronous/android_phone"
|
||||
fusermount -u $MOUNT_POINT
|
||||
rm -rf $MOUNT_POINT
|
||||
Reference in New Issue
Block a user