On Wed, Aug 7, 2013 at 5:08 AM,  <[email protected]> wrote:
...
> --- a/meta/recipes-core/initscripts/initscripts-1.0/functions
> +++ b/meta/recipes-core/initscripts/initscripts-1.0/functions
> @@ -58,3 +58,17 @@ status() {
>      fi
>      return 3
>  }
> +
> +# Determine whether rootfs is read-only or not according to /proc/mounts or 
> /etc/fstab.
> +is_rootfs_readonly () {
> +    local DIRNAME=`dirname $0`
> +    local ROOT_DIR=`echo $DIRNAME | sed -ne 's:/etc/.*::p'`
> +    local criteria_file
> +    [ -n "$ROOT_DIR" ] && criteria_file="$ROOT_DIR/etc/fstab" || 
> criteria_file="/proc/mounts"
> +    local flag
> +    for flag in `awk '{ if ($2 == "/") { split($4,FLAGS,",") } }; END { for 
> (f in FLAGS) print FLAGS[f] }' < $criteria_file`; do
> +       [ "$flag" = "ro" ] && { echo "yes"; return 0; }
> +    done
> +    echo "no"
> +    return 0
> +}
> \ No newline at end of file

Please fix this.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://projetos.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to