mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 23:39:40 +01:00
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
7
meta/packages/initscripts/initscripts-1.0/openmn/extractfs
vendored
Executable file
7
meta/packages/initscripts/initscripts-1.0/openmn/extractfs
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if (grep -q 'tmpfs.*/var.*tmpfs' /proc/mounts)
|
||||
then
|
||||
test "$VERBOSE" != no && echo "Copying /var filesystem..."
|
||||
cp -a /boot/var /
|
||||
fi
|
||||
63
meta/packages/initscripts/initscripts-1.0/openmn/packages
vendored
Executable file
63
meta/packages/initscripts/initscripts-1.0/openmn/packages
vendored
Executable file
@@ -0,0 +1,63 @@
|
||||
#!/bin/sh
|
||||
# Original author: ???
|
||||
#
|
||||
# Additions by Steph Meslin-Weber:
|
||||
# x Percentage display
|
||||
# x Dot display of dependency installations
|
||||
# - removed both of above
|
||||
# - display is now X of Y packages and current package name being installed
|
||||
|
||||
#. /etc/default/rcS
|
||||
|
||||
reconfigure () {
|
||||
pkg=$1
|
||||
path=$2
|
||||
isdependent=$3
|
||||
test -e "$path/info/$pkg.control" || return 1
|
||||
depends="`cat $path/info/$pkg.control|grep Depends|cut -d: -f2`"
|
||||
|
||||
# make sure we haven't already installed this package
|
||||
isthere=`cat /tmp/.configured.list|grep $pkg`
|
||||
if test "$isthere" != ""; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if test "$depends" != ""; then
|
||||
for dep in $depends; do
|
||||
(echo $log|grep $dep >/dev/null 2>&1) || ( reconfigure $dep $path "$max" "$pkg" && log="$log $dep"; )
|
||||
done
|
||||
fi
|
||||
|
||||
echo -ne " ${pkg}"
|
||||
|
||||
test -e "$path/info/$pkg.prerm" && $path/info/$pkg.prerm unconfigure >/dev/null 2>&1
|
||||
test -e "$path/info/$pkg.postinst" && $path/info/$pkg.postinst configure >/dev/null 2>&1
|
||||
|
||||
log="$log $pkg"
|
||||
|
||||
# append the installed package name to the list
|
||||
echo -ne "$pkg\n" >> /tmp/.configured.list
|
||||
|
||||
echo
|
||||
return 0
|
||||
}
|
||||
|
||||
if test ! -e /etc/.configured; then
|
||||
echo "Reconfiguring all packages installed to root:"
|
||||
|
||||
# create unique packages list file
|
||||
rm -f /tmp/.configured.list
|
||||
touch /tmp/.configured.list
|
||||
|
||||
log=""
|
||||
|
||||
for control in /usr/lib/ipkg/info/*.control; do
|
||||
package=`echo $control|sed -e 's,.*/,,g; s,\.control,,g;'`
|
||||
(echo $log|grep $package >/dev/null 2>&1) || reconfigure $package /usr/lib/ipkg
|
||||
done
|
||||
|
||||
# cleanup unique packages list file
|
||||
rm -f /tmp/.configured.list
|
||||
fi
|
||||
|
||||
test -f /usr/lib/ipkg/info/task-ramses || ipkg install task-ramses
|
||||
17
meta/packages/initscripts/initscripts-1.0/openmn/umountfs
vendored
Executable file
17
meta/packages/initscripts/initscripts-1.0/openmn/umountfs
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# umountfs Turn off swap and unmount all local filesystems.
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
echo "Deactivating swap..."
|
||||
swapoff -a
|
||||
|
||||
# We leave /proc mounted.
|
||||
echo "Unmounting local filesystems..."
|
||||
umount -f -a -r
|
||||
|
||||
mount -o remount,ro /
|
||||
|
||||
: exit 0
|
||||
Reference in New Issue
Block a user