Busybox built against musl-libc will choke on these otherwise, besides that
it is more natural to use the filesystem type, then options, then name, then
mountpoint.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34308
3c298f89-4303-0410-b956-
a3cf2f4a3e73
include $(INCLUDE_DIR)/version.mk
PKG_NAME:=base-files
include $(INCLUDE_DIR)/version.mk
PKG_NAME:=base-files
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
# Copyright (C) 2010 Vertical Communications
do_mount_procfs() {
# Copyright (C) 2010 Vertical Communications
do_mount_procfs() {
- mount proc /proc -t proc
+ mount -t proc proc /proc
- mount sysfs /sys -t sysfs
+ mount -t sysfs sysfs /sys
do_mount_tmpfs() {
calc_tmpfs_size
do_mount_tmpfs() {
calc_tmpfs_size
- mount tmpfs /tmp -t tmpfs -o size=$pi_size,nosuid,nodev,mode=1777
+ mount -t tmpfs -o size=$pi_size,nosuid,nodev,mode=1777 tmpfs /tmp
}
boot_hook_add preinit_essential do_mount_procfs
}
boot_hook_add preinit_essential do_mount_procfs
[ "$pi_failsafe_net_message" = "true" ] &&
[ "$pi_preinit_no_failsafe_netmsg" != "y" ]
}
[ "$pi_failsafe_net_message" = "true" ] &&
[ "$pi_preinit_no_failsafe_netmsg" != "y" ]
}
} && netmsg $pi_broadcast "$1"
}
}
} && netmsg $pi_broadcast "$1"
}
}
- mount devfs /dev -t devfs
+ mount -t devfs devfs /dev
- mount -t tmpfs tmpfs /dev -o mode=0755,size=512K
+ mount -t tmpfs -o mode=0755,size=512K tmpfs /dev
- mount devpts /dev/pts -t devpts
+ mount -t devpts devpts /dev/pts
}
boot_hook_add preinit_essential init_devpts
}
boot_hook_add preinit_essential init_devpts
do_mount_root() {
boot_run_hook preinit_mount_root
do_mount_root() {
boot_run_hook preinit_mount_root
boot_hook_add preinit_main do_mount_root
boot_hook_add preinit_main do_mount_root