#!/bin/sh ## Copyright (C) 2023 - 2023 ENCRYPTED SUPPORT LP ## Copyright (C) 2023 - 2023 Friedrich Doku ## See the file COPYING for copying conditions. ram_wipe_action() { local kernel_wiperam_exit kernel_wiperam_exit=$(getarg wiperamexit) if [ "$kernel_wiperam_exit" = "no" ]; then info "Skip, because wiperamexit=no kernel parameter detected, OK." return 0 fi if [ "$kernel_wiperam_exit" != "yes" ]; then info "Skip, because wiperamexit parameter is unset." return 0 fi info "wiperamexit=yes, therefore running second RAM wipe..." sdmem -l -l -v } ram_wipe_action