Skip to content

Commit

Permalink
Merge pull request #2738 from 01micko/fn_x-bugfix
Browse files Browse the repository at this point in the history
functions_x: fix typo
  • Loading branch information
01micko committed Dec 27, 2021
2 parents 5a9a7d2 + 2bae491 commit e79da1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion woof-code/rootfs-skeleton/etc/rc.d/functions_x
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# $1 = device_name (ex: sda1, mmcblk0p1, sr0 - returns sda, mmcblk0, sr0)
fx_get_drvname() {
case $1 in
mmc*|nmve*) echo ${1%p*} ;; #remove trailing p*
mmc*|nvme*) echo ${1%p*} ;; #remove trailing p*
*) echo ${1:0:3} ;; #assume sda, sr0, xxx
esac
}
Expand Down

0 comments on commit e79da1d

Please sign in to comment.