#!/bin/sh ### Copyrigh (C) 2023 - 2023 Friedrich Doku ram_wipe_check_needshutdown() { local wipe_action wipe_action=$(getarg wiperamaction) wait $(pgrep sdmem) info "DONE WAITING..." if [ "$wipe_action" = "reboot" ]; then reboot -f fi if [ "$wipe_action" = "poweroff" ]; then poweroff -f fi if [ "$wipe_action" = "halt" ]; then halt -f fi } ram_wipe_check_needshutdown