Permalink
Browse files

usbromservice - fix install error - fixes #2152

 * need to make a file in md_inst or the package management will think the install failed
 * mismatch between file used to disable the service scripts
  • Loading branch information...
joolswills committed Oct 11, 2017
1 parent aa5bf1b commit e95bca33d89f6b8ddbea4464361272e269c039b3
Showing with 4 additions and 3 deletions.
  1. +4 −3 scriptmodules/supplementary/usbromservice.sh
@@ -35,7 +35,8 @@ function depends_usbromservice() {
}
function install_bin_usbromservice() {
[[ ! -f "/etc/usbmount/rp_disabled" ]] && install_scripts_usbromservice
[[ ! -f "$md_inst/disabled" ]] && install_scripts_usbromservice
touch "$md_inst/installed"
}
function install_scripts_usbromservice() {
@@ -50,7 +51,7 @@ function install_scripts_usbromservice() {
}
function enable_usbromservice() {
rm -f "/etc/usbmount/rp_disabled"
rm -f "$md_inst/disabled"
install_scripts_usbromservice
}
@@ -60,7 +61,7 @@ function disable_usbromservice() {
file="/etc/usbmount/mount.d/${file##*/}"
rm -f "$file"
done
touch "/etc/usbmount/rp_disabled"
touch "$md_inst/disabled"
}
function remove_usbromservice() {

0 comments on commit e95bca3

Please sign in to comment.