Diff of /tags/installer-simple-0_4_90_20140108_3/bin/installer.sh.in
Parent Directory | Revision Log | Patch
revision 2437 by niro, Tue Jan 7 14:28:13 2014 UTC | revision 2438 by niro, Tue Jan 7 14:30:19 2014 UTC | |
---|---|---|
# | Line 642 is_uuid_supported() | Line 642 is_uuid_supported() |
642 | return 1 | return 1 |
643 | } | } |
644 | ||
get_uuid() | ||
{ | ||
local UUID | ||
local SEC_TYPE | ||
local TYPE | ||
local dev="$1" | ||
[[ -z ${dev} ]] && dialog_die "no dev given" | ||
# check if given device is already an UUID | ||
if [[ ${dev/UUID=/}x != ${dev}x ]] | ||
then | ||
eval "${dev}" | ||
else | ||
eval $(busybox.mkinitrd blkid ${dev} | grep "${dev}:" | sed 's/.*:\ //') | ||
fi | ||
echo "${UUID}" | ||
} | ||
645 | install_system_settings() | install_system_settings() |
646 | { | { |
647 | # schreibe fstab | # schreibe fstab |
|