| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | # Copyright 2025 Salvatore Bonaccorso <[email protected]> |
| 4 | |
| 5 | set -e |
| 6 | |
| 7 | if [scip-shell system . . `[`. -d /runscip-shell filesystem . . `/run`. ]; then |
| 8 | touchscip-shell system . . touch. /run/reboot-requiredscip-shell filesystem . . `/run/reboot-required`. |
| 9 | if [scip-shell system . . `[`. -n "${DPKG_MAINTSCRIPT_PACKAGE}" ]; then |
| 10 | if ! grepscip-shell system . . grep. -q "^$DPKG_MAINTSCRIPT_PACKAGE$" /run/reboot-required.pkgsscip-shell filesystem . . `/run/reboot-required.pkgs`. 2> /dev/nullscip-shell filesystem . . `/dev/null`. ; then |
| 11 | echoscip-shell system . . echo. "$DPKG_MAINTSCRIPT_PACKAGE" >> /run/reboot-required.pkgsscip-shell filesystem . . `/run/reboot-required.pkgs`. |
| 12 | fi |
| 13 | fi |
| 14 | fi |
| 15 | |
| 16 | exit 0 |