46d2eeb006ee267b11ada033b6a195f4c6d47be4
2 # Copyright (C) 2010-2013 OpenWrt.org
6 local cmdline
=$
(cat /proc
/cmdline
)
7 local bootpart
=${cmdline##*root=}
8 bootpart
=${bootpart%% *}
9 local uuid
=${bootpart#PARTUUID=}
14 blkid |
grep "PTUUID=\"$(rootpartuuid)\"" | cut
-d : -f1
17 bootpart_from_uuid
() {
18 blkid |
grep $
(rootpartuuid
)-01 | cut
-d : -f1
21 rootpart_from_uuid
() {
22 blkid |
grep $
(rootpartuuid
)-02 | cut
-d : -f1
27 [ -f /boot
/uImage
] ||
{
28 mount
-o rw
,noatime $
(bootpart_from_uuid
) /boot
> /dev
/null