Serge Caron wrote:
>
[ snip ]
> By formulating the concept of a default store and that of an exclusion list,
> here is _what_I_do_today_ : I boot from a CD which gives me all the storage
> I need for the job at hand. I define my default store to be on the _floppy_.
> So far, so good? Then I have this code snippet as part of the boot sequence:
>
> for pkg in /var/lib/lrpkg/*.list; do
> sed -e "/^etc/d" -e "/^[/]etc/d" -e "/^[.][/]etc/d" \
> ${pkg} > ${pkg}.light
> cmp -s ${pkg} ${pkg}.light
> if [ $? = 0 ]; then
> rm ${pkg}.light
> else
> echo ${pkg}
> mv ${pkg}.light ${pkg}
> fi
> done
[ snip ]
I am confused ;<
[1] Shouldn't your sed process:
sed -e "/^etc/d" -e "/^[/]etc/d" -e "/^[.][/]etc/d" \
${pkg} > ${pkg}.light
actually be this?
sed -n "/^[./]*etc/p" ${pkg} > ${pkg}.light
[2] How do you account for ${pkg}.exclude.list?
[3] How do you account for CONF files that do not reside under /etc?
[4] Where do you get `cmp'?
--
Best Regards,
mds
mds resource
888.250.3987
Dare to fix things before they break . . .
Our capacity for understanding is inversely proportional to how much we
think we know. The more I know, the more I know I don't know . . .
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel