Index: ltib =================================================================== RCS file: /sources/ltib/ltib/ltib,v retrieving revision 1.19 diff -u -r1.19 ltib --- ltib 22 Oct 2008 09:24:56 -0000 1.19 +++ ltib 18 Nov 2008 09:44:22 -0000 @@ -514,6 +514,11 @@ mk_fs_image($cf->{rpmroot}, "$cf->{rpmroot}.tmp", "$cf->{bin_path}/device_table.txt", $pcf) or die unless $echo; + + if($pcf->{POST_BUILD_SCRIPT}) { + print "\nrunning post build user command: $pcf->{POST_BUILD_SCRIPT}\n"; + system_nb($pcf->{POST_BUILD_SCRIPT}) == 0 or die; + } } } summary(); Index: config/userspace/deployment.lkc =================================================================== RCS file: /sources/ltib/ltib/config/userspace/deployment.lkc,v retrieving revision 1.1.1.8 diff -u -r1.1.1.8 deployment.lkc --- config/userspace/deployment.lkc 6 Nov 2007 15:44:46 -0000 1.1.1.8 +++ config/userspace/deployment.lkc 18 Nov 2008 09:44:23 -0000 @@ -48,6 +48,7 @@ default ROMFS if DEPLOYMENT_ROMFS default NFS if DEPLOYMENT_NFS +source ../../userspace/post_build_script.lkc config DEPLOYMENT_ERASE_BLOCK_SIZE depends DEPLOYMENT_JFFS2 Index: config/userspace/post_build_script.lkc =================================================================== RCS file: /sources/ltib/ltib/config/userspace/post_build_script.lkc,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 post_build_script.lkc --- config/userspace/post_build_script.lkc 23 Aug 2005 08:54:19 -0000 1.1.1.1 +++ config/userspace/post_build_script.lkc 18 Nov 2008 09:44:23 -0000 @@ -1,12 +1,12 @@ -comment "Post build script" - -config WANT_BUILD_SCRIPT - bool "Run a script after the build" - default y +config WANT_POST_BUILD_SCRIPT + bool "Run a command after building the target image" config POST_BUILD_SCRIPT - depends WANT_BUILD_SCRIPT - string "Enter the name of the post build script" - default "post_build_script" - + depends WANT_POST_BUILD_SCRIPT + string "command name/path" + default "" + help + Enter the name of the command you want to run. This may be a + script or other executable. If this is not an absolute path, it + should be in the standard path that LTIB uses.