On Tue, Jul 28, 2009 at 5:18 PM, Daniel Baumann
<daniel@debian.org> wrote:
<snip>
+if [ "$resume_devfs" ] && [ -e "$resume_devfs" ]; then
simplify: if $resume_defs exists, it's also never empty.
+ sed -e "s@^#* *RESUME=.*@RESUME=$resume@" < $resumeconf >
$resumeconf.new &&
+ mv $resumeconf.new $resumeconf
simplify: busybox's sed understands -i
otherwise looks good from the first look, will have a look and generate
a test image later.
There are a lot of things that could be done to make the script look prettier. My original intent was to try and keep the code as close as possible to that of base-installer's. However, I certainly have no strong feelings about this and so I'm happy to make the requested changes; updated patch attached.
Cheers,