mkinitrd

Cool project repo :D
git clone git://git.emmett1.my/mkinitrd.git
Log | Files | Refs

commit fc300fb8f65c930af3b2fea7389ad90c1f44d5b2
parent 608b912088ac9d9b9c81ad342d2aa8c712b9bc0b
Author: emmett1 <emmett1.2miligrams@gmail.com>
Date:   Sun, 14 Jun 2020 14:56:08 +0800

updated

Diffstat:
Mmkinitrd | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/mkinitrd b/mkinitrd @@ -165,22 +165,22 @@ parse_opt() { -k) needarg $2 KERNEL=$2 shift ;; - -o) needarg $2 + -o) needarg $2 OUTPUT=$2 shift ;; - -i) needarg $2 + -i) needarg $2 INITIN=$2 shift ;; - -c) needarg $2 + -c) needarg $2 CONFIG=$2 shift ;; - -A) needarg $2 + -A) needarg $2 IFS=, read -r -a ADDEARLYHOOKS <<< $2 shift ;; - -a) needarg $2 + -a) needarg $2 IFS=, read -r -a ADDHOOKS <<< $2 shift ;; - -s) needarg $2 + -s) needarg $2 IFS=, read -r -a SKIPHOOKS <<< $2 shift ;; -m) needarg $2 @@ -192,9 +192,9 @@ parse_opt() { -f) needarg $2 IFS=, read -r -a ADDFILES <<< $2 shift ;; - -q) QUIET=1 ;; - -h) usage; exit 0 ;; - *) msgerr "Invalid option '$1'" + -q) QUIET=1 ;; + -h) usage; exit 0 ;; + *) msgerr "Invalid option '$1'" exit 1 ;; esac shift