"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gparted.in" between
gparted-1.1.0.tar.gz and gparted-1.2.0.tar.gz

About: GParted is a graphical partition editor for creating, reorganizing, and deleting disk partitions (using GNU libparted).

gparted.in  (gparted-1.1.0):gparted.in  (gparted-1.2.0)
skipping to change at line 33 skipping to change at line 33
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with GParted. If not, see <http://www.gnu.org/licenses/>. # along with GParted. If not, see <http://www.gnu.org/licenses/>.
# #
# #
# Only permit one instance of GParted to execute at a time # Only permit one instance of GParted to execute at a time
# #
if test "z`ps -e | grep gpartedbin`" != "z"; then if pidof gpartedbin 1> /dev/null; then
echo "The process gpartedbin is already running." echo "The process gpartedbin is already running."
echo "Only one gpartedbin process is permitted." echo "Only one gpartedbin process is permitted."
exit 1 exit 1
fi fi
# #
# Define base command for executing GParted # Define base command for executing GParted
# #
BASE_CMD="@sbindir@/gpartedbin $*" BASE_CMD="@sbindir@/gpartedbin $*"
skipping to change at line 97 skipping to change at line 97
exit $status exit $status
fi fi
# #
# Search PATH to determine if systemctl program can be found # Search PATH to determine if systemctl program can be found
# and if appropriate daemon is running. # and if appropriate daemon is running.
# #
HAVE_SYSTEMCTL=no HAVE_SYSTEMCTL=no
for k in '' `echo "$PATH" | sed 's,:, ,g'`; do for k in '' `echo "$PATH" | sed 's,:, ,g'`; do
if test -x "$k/systemctl"; then if test -x "$k/systemctl"; then
if test "z`ps -e | grep systemd`" != "z"; then if pidof systemd 1> /dev/null; then
HAVE_SYSTEMCTL=yes HAVE_SYSTEMCTL=yes
break break
fi fi
fi fi
done done
# #
# Check if udisks2-inhibit exists in known location # Check if udisks2-inhibit exists in known location
# and if appropriate daemon is running. # and if appropriate daemon is running.
# #
HAVE_UDISKS2_INHIBIT=no HAVE_UDISKS2_INHIBIT=no
if test -x "/usr/lib/udisks2/udisks2-inhibit"; then if test -x "/usr/lib/udisks2/udisks2-inhibit"; then
if test "z`ps -e | grep 'udisksd'`" != "z"; then if pidof udisksd 1> /dev/null; then
HAVE_UDISKS2_INHIBIT=yes HAVE_UDISKS2_INHIBIT=yes
fi fi
fi fi
# #
# Search PATH to determine if udisks program can be found # Search PATH to determine if udisks program can be found
# and if appropriate daemon is running. # and if appropriate daemon is running.
# #
HAVE_UDISKS=no HAVE_UDISKS=no
for k in '' `echo "$PATH" | sed 's,:, ,g'`; do for k in '' `echo "$PATH" | sed 's,:, ,g'`; do
if test -x "$k/udisks"; then if test -x "$k/udisks"; then
if test "z`ps -e | grep udisks-daemon`" != "z"; then if pidof udisks-daemon 1> /dev/null; then
HAVE_UDISKS=yes HAVE_UDISKS=yes
break break
fi fi
fi fi
done done
# #
# Search PATH to determine if hal-lock program can be found # Search PATH to determine if hal-lock program can be found
# and if appropriate daemon is running. # and if appropriate daemon is running.
# #
HAVE_HAL_LOCK=no HAVE_HAL_LOCK=no
for k in '' `echo "$PATH" | sed 's,:, ,g'`; do for k in '' `echo "$PATH" | sed 's,:, ,g'`; do
if test -x "$k/hal-lock"; then if test -x "$k/hal-lock"; then
if test "z`ps -e | grep hald`" != "z"; then if pidof hald 1> /dev/null; then
HAVE_HAL_LOCK=yes HAVE_HAL_LOCK=yes
break break
fi fi
fi fi
done done
# #
# Use systemctl to prevent automount by masking currently unmasked mount points # Use systemctl to prevent automount by masking currently unmasked mount points
# #
if test "x$HAVE_SYSTEMCTL" = "xyes"; then if test "x$HAVE_SYSTEMCTL" = "xyes"; then
MOUNTLIST=`systemctl list-units --full --all -t mount --no-legend \ MOUNTLIST=`systemctl show --all --property=Where,What,Id,LoadState '*.mou
| grep -v masked | cut -f1 -d' ' \ nt' | \
| egrep -v '^(dev-hugepages|dev-mqueue|proc-sys-fs-binfmt_misc|run-user awk '
-.*-gvfs|sys-fs-fuse-connections|sys-kernel-config|sys-kernel-debug)'` function clear_properties() {
where = ""; what = ""; id = ""; loadstate = ""
}
function process_unit() {
if (substr(what,1,5) == "/dev/" &&
loadstate != "masked" &&
what != "/dev/fuse" &&
! (substr(what,1,9) == "/dev/loop" && substr(where,1,6) == "/
snap/"))
{
print id
}
clear_properties()
}
/^Where=/ { where = substr($0,7) }
/^What=/ { what = substr($0,6) }
/^Id=/ { id = substr($0,4) }
/^LoadState=/ { loadstate = substr($0,11) }
/^$/ { process_unit() }
END { process_unit() }
'`
systemctl --runtime mask --quiet -- $MOUNTLIST systemctl --runtime mask --quiet -- $MOUNTLIST
fi fi
# #
# Create temporary blank overrides for all udev rules which automatically # Create temporary blank overrides for all udev rules which automatically
# start Linux Software RAID array members. # start Linux Software RAID array members.
# #
# Udev stores volatile / temporary runtime rules in directory /run/udev/rules.d. # Udev stores volatile / temporary runtime rules in directory /run/udev/rules.d.
# Older versions use /dev/.udev/rules.d instead, and even older versions don't # Older versions use /dev/.udev/rules.d instead, and even older versions don't
# have such a directory at all. Volatile / temporary rules are use to override # have such a directory at all. Volatile / temporary rules are use to override
 End of changes. 6 change blocks. 
9 lines changed or deleted 29 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)