initrd.scripts: drop unused function: uppercase()

master
Fabio Erculiani 12 years ago
parent bb1e05985c
commit 90b81e9f4b

@ -9,11 +9,6 @@
. /etc/initrd.d/00-modules.sh . /etc/initrd.d/00-modules.sh
uppercase() {
# needs tr on busybox
echo ${1} | tr 'a-z' 'A-Z'
}
real_root_init() { real_root_init() {
if [ -z "${REAL_ROOT}" ] && [ "${FAKE_ROOT}" != "/dev/ram0" ]; then if [ -z "${REAL_ROOT}" ] && [ "${FAKE_ROOT}" != "/dev/ram0" ]; then
REAL_ROOT="${FAKE_ROOT}" REAL_ROOT="${FAKE_ROOT}"
@ -716,9 +711,6 @@ open_luks() {
# TODO(lxnay): what has been seen, cannot be unseen. # TODO(lxnay): what has been seen, cannot be unseen.
# TODO(lxnay): there is so much wrong in this function... # TODO(lxnay): there is so much wrong in this function...
# please use 'tr' and this line, or remove it
# eval local TYPE=$(uppercase $1)
case $1 in case $1 in
root) root)
local TYPE=ROOT local TYPE=ROOT

Loading…
Cancel
Save