diff --git distrib/miniroot/install.sub distrib/miniroot/install.sub index bce1fa50358..31dbafdc95d 100644 --- distrib/miniroot/install.sub +++ distrib/miniroot/install.sub @@ -2319,8 +2319,11 @@ parse_hn_line() { _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]} up;dhclient $_if" V4_DHCPCONF=true ;; - '!'*|bridge) - # Skip shell commands and bridge in the installer. + '!'*) _cmd=$(print -- "${_c[@]}" | sed 's/\$if/'$_if'/g') + _cmds[${#_cmds[*]}]="${_cmd#!}" + ;; + bridge) + # Skip bridge in the installer. return ;; *) _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]}"
Le 09/11/2018 à 17:21, Gilles Chehade a écrit : > On Fri, Nov 09, 2018 at 05:10:00PM +0100, Julien Dhaille wrote: >> Hi. >> >> During auto upgrade via the auto_upgrade.conf file (no DHCP server), >> shell commands are skipped. >> This small diff is coming from parse_hn_line() in /etc/netstart, thus, >> it keeps the behavior similar. >> I think it's handy, especially if you need a static route in order to >> reach a mirror for example. >> > > diff is barely readable :-p > > >> diff --git install.sub install.sub >> index bce1fa50358..31dbafdc95d 100644 >> --- install.sub >> +++ install.sub >> @@ -2319,8 +2319,11 @@ parse_hn_line() { >> ?????????????????????????????? _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]} >> up;dhclient >> $_if" >> ?????????????????????????????? V4_DHCPCONF=true >> ?????????????????????????????? ;; >> -???????????? '!'*|bridge) >> -???????????????????????????? # Skip shell commands and bridge in the >> installer. >> +???????????? '!'*) _cmd=$(print -- "${_c[@]}" | sed 's/\$if/'$_if'/g') >> +???????????????????????????? _cmds[${#_cmds[*]}]="${_cmd#!}" >> +???????????????????????????? ;; >> +???????????? bridge) >> +???????????????????????????? # Skip bridge in the installer. >> ?????????????????????????????? return >> ?????????????????????????????? ;; >> ?????????????? *)?????????? _cmds[${#_cmds[*]}]="ifconfig $_if ${_c[@]}" >> >> >> Cheers >> >