mirror of
https://git.yoctoproject.org/poky
synced 2026-03-05 14:59:41 +01:00
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
84 lines
1.4 KiB
Bash
Executable File
84 lines
1.4 KiB
Bash
Executable File
### BEGIN INIT INFO
|
|
# Provides: mountnfs
|
|
# Required-Start: $local_fs $network $portmap
|
|
# Required-Stop:
|
|
# Default-Start: S
|
|
# Default-Stop:
|
|
### END INIT INFO
|
|
|
|
. /etc/default/rcS
|
|
|
|
#
|
|
# Run in a subshell because of I/O redirection.
|
|
#
|
|
test -f /etc/fstab && (
|
|
|
|
#
|
|
# Read through fstab line by line. If it is NFS, set the flag
|
|
# for mounting NFS filesystems. If any NFS partition is found and it
|
|
# not mounted with the nolock option, we start the portmapper.
|
|
#
|
|
portmap=no
|
|
mount_nfs=no
|
|
mount_smb=no
|
|
mount_ncp=no
|
|
while read device mountpt fstype options
|
|
do
|
|
case "$device" in
|
|
""|\#*)
|
|
continue
|
|
;;
|
|
esac
|
|
|
|
case "$options" in
|
|
*noauto*)
|
|
continue
|
|
;;
|
|
esac
|
|
|
|
if test "$fstype" = nfs
|
|
then
|
|
mount_nfs=yes
|
|
case "$options" in
|
|
*nolock*)
|
|
;;
|
|
*)
|
|
portmap=yes
|
|
;;
|
|
esac
|
|
fi
|
|
if test "$fstype" = smbfs
|
|
then
|
|
mount_smb=yes
|
|
fi
|
|
if test "$fstype" = ncpfs
|
|
then
|
|
mount_ncp=yes
|
|
fi
|
|
done
|
|
|
|
exec 0>&1
|
|
|
|
if test "$portmap" = yes
|
|
then
|
|
if test -x /sbin/portmap
|
|
then
|
|
echo -n "Starting portmapper... "
|
|
start-stop-daemon --start --quiet --exec /sbin/portmap
|
|
sleep 2
|
|
fi
|
|
fi
|
|
|
|
if test "$mount_nfs" = yes || test "$mount_smb" = yes || test "$mount_ncp" = yes
|
|
then
|
|
echo "Mounting remote filesystems..."
|
|
test "$mount_nfs" = yes && mount -a -t nfs
|
|
test "$mount_smb" = yes && mount -a -t smbfs
|
|
test "$mount_ncp" = yes && mount -a -t ncpfs
|
|
fi
|
|
|
|
) < /etc/fstab
|
|
|
|
: exit 0
|
|
|