mirror of
https://github.com/mbusb/multibootusb
synced 2024-11-16 21:26:23 +00:00
4a41cbbc79
1. Fix for crash when installing under Install syslinux tab 2. Prevent read only filesystem under Linux 3. Corrected setup file copy location preventing crash 4. Improved multibootusb-pkexec script for working under rpm and deb based distros 5. Create correct policy file during build time 6. Modified readme file to point to improved guide
23 lines
614 B
Bash
23 lines
614 B
Bash
#!/bin/bash
|
|
# Generic wrapper for locating multibootusb file and execute pkexec accordingly
|
|
# Bin pat of this file and policy file have to match
|
|
|
|
if [ $(which pkexec) ]; then
|
|
if [ -f /usr/bin/multibootusb ]; then
|
|
pkexec --disable-internal-agent "/usr/bin/multibootusb" "$@"
|
|
fi
|
|
|
|
if [ -f /usr/local/bin/multibootusb ]; then
|
|
pkexec --disable-internal-agent "/usr/local/bin/multibootusb" "$@"
|
|
fi
|
|
else
|
|
if [ -f /usr/bin/multibootusb ]; then
|
|
/usr/bin/multibootusb "$@"
|
|
fi
|
|
|
|
if [ -f /usr/local/bin/multibootusb ]; then
|
|
/usr/local/bin/multibootusb "$@"
|
|
fi
|
|
|
|
fi
|