On Fri, Mar 7, 2008 at 3:23 AM, Michael Stone <[EMAIL PROTECTED]> wrote: > --- > olpc-configure | 16 ++++++++++++++++ > 1 files changed, 16 insertions(+), 0 deletions(-) > > diff --git a/olpc-configure b/olpc-configure
Slight variant, which passes my muster (unless someone convinces me it shouldn't!) attached (and also added to http://dev.laptop.org/ticket/6432#comment:14 ). --scott -- ( http://cscott.net/ )
diff --git a/etc/rc.d/init.d/olpc-configure b/etc/rc.d/init.d/olpc-configure index 17b0f80..c4f0d2d 100755 --- a/etc/rc.d/init.d/olpc-configure +++ b/etc/rc.d/init.d/olpc-configure @@ -103,6 +103,22 @@ rebuild_library_index() { fi } +install_customization_packages () { + # we'd like to look on USB/SD here, but udev/sugar hasn't mounted + # them yet =( + for pkgdir in /home/olpc/.custom/rpms ; do # other paths? + if [ ! -d "$pkgdir" ]; then continue; fi + pkgs=$(find "$pkgdir" -name '*.rpm' -a ! -name '*.src.rpm' ) + if [ -n "$pkgs" ]; then + echo '* olpc-configure: Installing customization packages:' + echo "$pkgs" + yum -yt --nogpgcheck install $pkgs + fi + unset pkgs + fi + unset pkgdir +} + # configurations which happen in /home # these don't need to be repeated when we upgrade. configure_home() { @@ -212,6 +228,11 @@ __EOF__ echo "olpc-configure: replaying rainbow spool..." /usr/sbin/rainbow-replay-spool fi + + # developer customizations. + if /usr/bin/olpc-test-devkey -q ; then + install_customization_packages + fi } #
_______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel