[maemo-commits] [maemo-commits] r16810 - projects/haf/trunk/ke-recv/src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Nov 28 18:50:40 EET 2008
- Previous message: [maemo-commits] r16809 - projects/haf/trunk/ke-recv/src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kihamala Date: 2008-11-28 18:50:40 +0200 (Fri, 28 Nov 2008) New Revision: 16810 Added: projects/haf/trunk/ke-recv/src/fremantle-format-internal-memory-card.sh Removed: projects/haf/trunk/ke-recv/src/fremantle-partition-internal-memory-card.sh Log: add formatting Copied: projects/haf/trunk/ke-recv/src/fremantle-format-internal-memory-card.sh (from rev 16809, projects/haf/trunk/ke-recv/src/fremantle-partition-internal-memory-card.sh) =================================================================== --- projects/haf/trunk/ke-recv/src/fremantle-partition-internal-memory-card.sh 2008-11-28 16:43:40 UTC (rev 16809) +++ projects/haf/trunk/ke-recv/src/fremantle-format-internal-memory-card.sh 2008-11-28 16:50:40 UTC (rev 16810) @@ -0,0 +1,44 @@ +#!/bin/sh +# This file is part of ke-recv +# +# Copyright (C) 2008 Nokia Corporation. All rights reserved. +# +# Contact: Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# version 2 as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +# 02110-1301 USA + +if [ "x$1" != "x/dev/mmcblk1" -a "x$1" != "x/dev/mmcblk0" ]; then + echo "Usage: $0 <device name of internal memory card>" + exit 1 +fi + +/etc/init.d/ke-recv stop +umount $1 +umount ${1}p1 +umount ${1}p2 +umount ${1}p3 + +sfdisk -D -uM $1 << EOF +,512,S +,2048,L +,,b +EOF + +mkdosfs -F 32 -R 38 ${1}p3 + +sync + +echo "$0: done." +echo "$0: please reboot now." Deleted: projects/haf/trunk/ke-recv/src/fremantle-partition-internal-memory-card.sh =================================================================== --- projects/haf/trunk/ke-recv/src/fremantle-partition-internal-memory-card.sh 2008-11-28 16:43:40 UTC (rev 16809) +++ projects/haf/trunk/ke-recv/src/fremantle-partition-internal-memory-card.sh 2008-11-28 16:50:40 UTC (rev 16810) @@ -1,41 +0,0 @@ -#!/bin/sh -# This file is part of ke-recv -# -# Copyright (C) 2008 Nokia Corporation. All rights reserved. -# -# Contact: Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# version 2 as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -# 02110-1301 USA - -if [ "x$1" != "x/dev/mmcblk1" -a "x$1" != "x/dev/mmcblk0" ]; then - echo "Usage: $0 <device name of internal memory card>" - exit 1 -fi - -/etc/init.d/ke-recv stop -umount $1 -umount ${1}p1 -umount ${1}p2 -umount ${1}p3 - -sfdisk -D -uM $1 << EOF -,512,S -,2048,L -,,b -EOF -sync - -echo "$0: done." -echo "$0: please reboot now."
- Previous message: [maemo-commits] r16809 - projects/haf/trunk/ke-recv/src
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]