index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | David Runge <dvzrv@archlinux.org> | 2021-07-31 16:32:48 +0200 |
---|---|---|
committer | David Runge <dvzrv@archlinux.org> | 2021-07-31 17:32:40 +0200 |
commit | 37529a96766a5841fc6561acfbfbf42b3d6ff98a (patch) | |
tree | 14538b925812f0d6a30672c21e8952609ff28619 /script | |
parent | a5f57c2bfa3f7b380f572b4e86845113d6b9ef15 (diff) |
-rw-r--r-- | script/archiso_shutdown | 6 |
diff --git a/script/archiso_shutdown b/script/archiso_shutdown index 23a8a79..dd3bb96 100644 --- a/script/archiso_shutdown +++ b/script/archiso_shutdown @@ -14,7 +14,7 @@ dmsetup remove_all # Remove all loopback devices. for _lup in $(grep ^/dev/loop /oldrun/archiso/used_block_devices | tac); do - if ! losetup -d -- "${_lup}" 2> /dev/null; then + if ! losetup -d -- "${_lup}" 2>/dev/null; then umount -d -- "${_lup}" fi done @@ -34,8 +34,8 @@ fi # reboot / poweroff / halt, depending on the argument passed by init # if something invalid is passed, we halt case "$1" in - reboot|poweroff|halt) "$1" -f ;; - *) halt -f;; +reboot | poweroff | halt) "$1" -f ;; +*) halt -f ;; esac # vim: set ft=sh: |