vchanger/scripts/vchanger-launch-mount.sh

15 lines
519 B
Bash
Raw Normal View History

2016-08-11 08:12:38 -03:00
#!/bin/sh
#
2020-05-27 10:23:25 -03:00
# vchanger-launch-mount.sh ( vchanger v.1.0.3 ) 2020-05-06
2016-08-11 08:12:38 -03:00
#
2020-05-27 10:23:25 -03:00
# This script is used to run the vchanger-mount-uuid.sh script as
# a detached process and immediately exit. This is to prevent delays
# when invoked by a udev rule.
2016-08-11 08:12:38 -03:00
#
VCHANGER_MOUNT=/usr/libexec/vchanger/vchanger-mount-uuid.sh
2020-05-27 10:23:25 -03:00
# For some reason, nohup doesn't work, but "at now" does. This may have to
# do with cgroups.
#nohup $VCHANGER_MOUNT $1 </dev/null >/dev/null 2>&1 &
echo "$VCHANGER_MOUNT $1 </dev/null >/dev/null 2>&1" | at now