blob: 3051e87988f9307659f43d7243a4d550ff544a16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
local ext_device=/dev/nande
local ext_path=$mountpoint/var/lib/clover
local tmpfs=$temppath/nandc
mkdir -p $ext_path
mkdir -p $tmpfs
if ! mount -o rw,nosuid,nodev,noatime $ext_device $tmpfs ; then
echo creating fs on $ext_device
$rootfs/bin/mkfs.ext2 $ext_device
mount -o rw,nosuid,nodev,noatime $ext_device $tmpfs || return 1
fi
echo moving data from nandc to nande...
cp -rf $ext_path/* $tmpfs
rm -rf $ext_path/*
umount $tmpfs
rm -rf $tmpfs
return 0
|