Bug#343457: boot_xconf: syntax error in 'let LENGTH=($LENGTH - 1)'
Petter Reinholdtsen wrote: > Package: debian-edu-config > Version: 0.399 > Severity: important > > When upgrading debian-edu-config, I get this message from postinst. > This did not break the installation of the new package, so I set > severity only to important. > > Installing new version of config file /etc/init.d/update-hostname ... > Installing new version of config file /etc/init.d/start-wlan ... > Installing new version of config file /etc/init.d/report-reboot ... > /etc/init.d/boot_xconf: line 43: syntax error near unexpected token `(' > /etc/init.d/boot_xconf: line 43: ` let LENGTH=($LENGTH - 1)' > invoke-rc.d: initscript boot_xconf, action "start" failed. I THink we could remove a lot of the addonscripts, since these script now is obsolete. boot_xconf was used to generate an XF86Config for lessdisks-clients, by using xdebconfigurator instead of some x_ltsp_cfg script -- Finn-Arne Johansen [EMAIL PROTECTED] http://bzz.no/ Leverandør av support på, drift og videreutvikling av Skolelinux-løsninger
Bug#343457: boot_xconf: syntax error in 'let LENGTH=($LENGTH - 1)'
[Petter Reinholdtsen] > I assume the code should subtract 1 from the value of LENGTH. > Perhaps a posix shell compliant notation should be used instead? I suspect this patch will solve it, but it is untested. Index: debian/debian-edu-config.boot_xconf === --- debian/debian-edu-config.boot_xconf (revisjon 5227) +++ debian/debian-edu-config.boot_xconf (arbeidskopi) @@ -40,7 +40,7 @@ LENGTH=8 while [ $LENGTH -gt 0 ] ; do echo $HEXIP - let LENGTH=($LENGTH - 1) + LENGTH=(($LENGTH - 1)) HEXIP=$(echo $HEXIP | cut -c -$LENGTH) done } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#343457: boot_xconf: syntax error in 'let LENGTH=($LENGTH - 1)'
Package: debian-edu-config Version: 0.399 Severity: important When upgrading debian-edu-config, I get this message from postinst. This did not break the installation of the new package, so I set severity only to important. Installing new version of config file /etc/init.d/update-hostname ... Installing new version of config file /etc/init.d/start-wlan ... Installing new version of config file /etc/init.d/report-reboot ... /etc/init.d/boot_xconf: line 43: syntax error near unexpected token `(' /etc/init.d/boot_xconf: line 43: ` let LENGTH=($LENGTH - 1)' invoke-rc.d: initscript boot_xconf, action "start" failed. This looks like a typo in the script. I assume the code should subtract 1 from the value of LENGTH. Perhaps a posix shell compliant notation should be used instead? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]