diff --git a/on-boot-script/dpkg-build-files/debian/postrm b/on-boot-script/dpkg-build-files/debian/postrm index 65f68ec..31cad44 100755 --- a/on-boot-script/dpkg-build-files/debian/postrm +++ b/on-boot-script/dpkg-build-files/debian/postrm @@ -21,7 +21,7 @@ set -e case "$1" in purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - # reserved for future use + /sbin/ssh-proxy rm /mnt/data/on_boot.sh true ;; diff --git a/on-boot-script/dpkg-build-files/debian/preinst b/on-boot-script/dpkg-build-files/debian/preinst index bf46754..196297d 100755 --- a/on-boot-script/dpkg-build-files/debian/preinst +++ b/on-boot-script/dpkg-build-files/debian/preinst @@ -16,7 +16,7 @@ set -e case "$1" in install|upgrade) - # reserved for future use + /sbin/ssh-proxy rm /mnt/data/on_boot.sh true ;; diff --git a/on-boot-script/dpkg-build-files/udm-boot.service b/on-boot-script/dpkg-build-files/udm-boot.service index f54dc3e..90de7b8 100644 --- a/on-boot-script/dpkg-build-files/udm-boot.service +++ b/on-boot-script/dpkg-build-files/udm-boot.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=oneshot -ExecStart=/sbin/ssh-proxy 'mkdir -p /mnt/data/on_boot.d && find -L /mnt/data/on_boot.d -mindepth 1 -maxdepth 1 -type f -print0 | sort -z | xargs -0 -r -n 1 -- sh -c '\''if test -x "$0"; then echo "%n: running $0"; "$0"; else case "$0" in *.sh) echo "%n: sourcing $0"; . "$0";; *) echo "%n: ignoring $0";; esac; fi'\' +ExecStart=/sbin/ssh-proxy 'mkdir -p /mnt/data/on_boot.d && find -L /mnt/data/on_boot.d -iname "*.sh" -mindepth 1 -maxdepth 1 -type f -print0 | sort -z | xargs -0 -r -n 1 -- sh -c '\''if test -x "$0"; then echo "%n: running $0"; "$0"; else case "$0" in *.sh) echo "%n: sourcing $0"; . "$0";; *) echo "%n: ignoring $0";; esac; fi'\' RemainAfterExit=true [Install]