summaryrefslogtreecommitdiff
path: root/packages/slugos-init/slugos-init_0.10.bb
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2006-02-01 08:25:30 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-02-01 08:25:30 +0000
commit9c6194db05ec44fb2f1cf4a0032fc050d35d47b5 (patch)
tree3daa148dc3353e061cf83cb33316d6b6c8240b3d /packages/slugos-init/slugos-init_0.10.bb
parent594313d9d9a596e54ece19ccda7a4c3602fea55e (diff)
slugos-init: add init script to handle USB device moving in 0.10
- the init.d script fixfstab uses blkid to build a partition/uuid mapping table and compares this to the version from the previous boot, if anything changes /etc/fstab is updated
Diffstat (limited to 'packages/slugos-init/slugos-init_0.10.bb')
-rw-r--r--packages/slugos-init/slugos-init_0.10.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/slugos-init/slugos-init_0.10.bb b/packages/slugos-init/slugos-init_0.10.bb
index 179e5a735e..6a31fca367 100644
--- a/packages/slugos-init/slugos-init_0.10.bb
+++ b/packages/slugos-init/slugos-init_0.10.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
LICENSE = "GPL"
DEPENDS = "base-files devio"
RDEPENDS = "busybox devio"
-PR = "r51"
+PR = "r52"
SRC_URI = "file://boot/flash \
file://boot/disk \
@@ -12,6 +12,7 @@ SRC_URI = "file://boot/flash \
file://boot/ram \
file://boot/network \
file://boot/udhcpc.script \
+ file://initscripts/fixfstab \
file://initscripts/syslog.buffer \
file://initscripts/syslog.file \
file://initscripts/syslog.network \
@@ -35,7 +36,8 @@ CPROGS = "${USRSBINPROGS} ${SBINPROGS}"
SCRIPTS = "turnup reflash leds sysconf"
BOOTSCRIPTS = "flash disk nfs ram network udhcpc.script"
INITSCRIPTS = "syslog.buffer syslog.file syslog.network zleds\
- leds_startup rmrecovery sysconfsetup umountinitrd.sh"
+ leds_startup rmrecovery sysconfsetup umountinitrd.sh\
+ fixfstab"
# This just makes things easier...
S="${WORKDIR}"
@@ -120,6 +122,7 @@ pkg_postinst_slugos-init() {
test -n "$D" && opt="-r $D"
update-rc.d $opt hwclock.sh start 8 S . start 45 0 6 .
update-rc.d $opt umountinitrd.sh start 9 S .
+ update-rc.d $opt fixfstab start 10 S .
update-rc.d $opt syslog.buffer start 11 S . start 49 0 6 .
update-rc.d $opt sysconfsetup start 12 S .
update-rc.d $opt syslog.file start 39 S . start 47 0 6 .