# Path: chirp/common/conf.py



import getopt
import os
import re
import subprocess
import sys
from chirp.common.conf import MOUNT_BY_HDSN_ROOT
#!/usr/bin/env python

# do_automount: Simple automated mounting and unmounting
#
# Attempts to mount all data drives in a tree where the mount point name
# is the drive's serial number.
#
# We only attempt to mount drives that have a single partition numbered "1".
# This has the nice property of excluding drives with standard Linux installs,
# since they will have swap partitions.
#
# If run with --unmount-all, all currently-mounted data drives will be
# unmounted.




NOT_MOUNTED_MARKER = "_NOT_MOUNTED"

HDPARM_BIN = "/sbin/hdparm"
MOUNT_BIN = "/bin/mount"

# Path: chirp/common/conf.py



# Path: chirp/sysadmin/do_automount.py
import getopt
import os
import re
import subprocess
import sys
from chirp.common.conf import MOUNT_BY_HDSN_ROOT

#!/usr/bin/env python

# do_automount: Simple automated mounting and unmounting
#
# Attempts to mount all data drives in a tree where the mount point name
# is the drive's serial number.
#
# We only attempt to mount drives that have a single partition numbered "1".
# This has the nice property of excluding drives with standard Linux installs,
# since they will have swap partitions.
#
# If run with --unmount-all, all currently-mounted data drives will be
# unmounted.




NOT_MOUNTED_MARKER = "_NOT_MOUNTED"

HDPARM_BIN = "/sbin/hdparm"
MOUNT_BIN = "/bin/mount"

UMOUNT_BIN = "/bin/umount"