Workaround to speed boot times for BBB debian image

Hi,

I noticed that BBB takes around 1 and half minute to finish the boot process because of /etc/init.d/networking service taking too much time to execute. I did some modifications into the networking script and the boot time reported by systemd got reduced to about 5 secs while the network becomes available in less than 15 seconds.

I have made the changes in the start procedure as follows

`
start)
if init_is_upstart; then
exit 1
fi
process_options
check_ifstate

if [ “$CONFIGURE_INTERFACES” = no ]
then
log_action_msg “Not configuring network interfaces, see /etc/default/networking”
exit 0
fi
set -f
exclusions=$(process_exclusions)
log_action_begin_msg “Configuring network interfaces”
if [ -x /sbin/udevadm ]; then
if [ -n “$(ifquery --list --exclude=lo)” ] || [ -n “$(ifquery --list --allow=hotplug)” ]; then
udevadm settle || true
fi
fi

Lets run this if block in background to speed the boot process

( if ifup -a $exclusions $verbose && ifup_hotplug $exclusions $verbose
then
log_action_end_msg $?
else
log_action_end_msg $?
fi ) &
;;

`

I know its a ugly hack but speeds up the process. I know installing some other softwares like connman, etc also speeds up the process but I didn’t wanted to install them. Any other suggestions are welcome.

Which file is this ? ALso this looks to be an Ubuntu fix only ? Pretty sure Debian doesn’t use upstart :wink:

Yeah never mind about the Ubuntu stuffs. My eyes in the morning are not that great.