summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs
diff options
context:
space:
mode:
authorThomas Petazzoni2010-12-05 21:53:01 +0100
committerPeter Korsgaard2010-12-16 14:54:57 +0100
commit90965566891ee63baaae6be66e55a12c28ab1b65 (patch)
tree7405afb58ca0a4744cb7e4eaaf3b5af623e4ae2b /target/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs
parentMinify arm_nptl_toolchain_defconfig (diff)
downloadbuildroot-90965566891ee63baaae6be66e55a12c28ab1b65.tar.gz
buildroot-90965566891ee63baaae6be66e55a12c28ab1b65.tar.xz
buildroot-90965566891ee63baaae6be66e55a12c28ab1b65.zip
board: simplify atngw100 support
Minimize atngw100_defconfig, remove atngw100-base_defconfig, and remove the target skeleton and device table. Instead of having complete copies of new target skeletons (making them hard to maintain), we should just have a post-build script that adds/removes/tweaks the existing target skeleton. Moreover, most of the tweaks in this target skeleton were for specific packages, but the policy now is that board defconfig should just build a basic root filesystem with Busybox, and let the user select whichever set of packages (s)he wants. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'target/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs')
-rwxr-xr-xtarget/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs74
1 files changed, 0 insertions, 74 deletions
diff --git a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs b/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs
deleted file mode 100755
index d9e5c9249..000000000
--- a/target/device/Atmel/atngw100/target_skeleton/etc/init.d/S00mountvirtfs
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-
-MOUNT=/bin/mount
-MKDIR=/bin/mkdir
-
-retval=0
-
-mount_fs()
-{
- if [ "$1" = "" -o "$2" = "" -o "$3" = "" ]; then
- return;
- fi
-
- if [ "$4" = "" ]; then
- if ! ${MOUNT} -t $3 $1 $2; then
- echo " mount $2 failed"
- retval=1
- return 1
- else
- echo " $2 mounted"
- fi
- else
- if ! ${MOUNT} -t $3 -o $4 $1 $2; then
- echo " mount $2 failed"
- retval=1
- return 1
- else
- echo " $2 mounted"
- fi
- fi
-
- return 0
-}
-
-mkdir_fs()
-{
- if [ "$1" = "" ]; then
- return;
- fi
-
- if ! ${MKDIR} $1; then
- echo " mkdir $1 failed"
- retval=1
- return 1
- else
- echo " $1 directory made"
- fi
-
- return 0
-}
-
-echo "Mounting virtual filesystems:"
-
-mount_fs proc /proc proc
-mount_fs sys /sys sysfs
-
-if mount_fs dev /dev tmpfs "size=512k,mode=0755"; then
- mkdir_fs /dev/pts
- mount_fs pts /dev/pts devpts
- mkdir_fs /dev/shm
- # g_serial is not detected by mdev.
- mknod /dev/ttygserial c 127 0
-fi
-
-mount_fs config /config configfs
-mount_fs tmp /tmp tmpfs
-mount_fs run /var/run tmpfs
-mount_fs log /var/log tmpfs
-
-if [ $retval -ne 0 ]; then
- echo " WARNING: not able to mount all virtual file systems"
-fi
-
-exit $retval