Permalink
Browse files

look for netconfig.json on boot medium

  • Loading branch information...
1 parent ab0a76c commit dfd2b5db52046ce4c168c95974ca2b8bd941421f @asquared committed Jun 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/includes.chroot/etc/init.d/concerto-netconfig
@@ -22,6 +22,12 @@ test -x $NETCONFIG || exit 0
run_netconfig()
{
+ # Look for config file on the boot medium and copy it over
+ # the built-in default if it's there
+ if [ -e /live/image/netconfig.json ]
+ cp /live/image/netconfig.json /etc/netconfig.json
+ fi
+
log_daemon_msg "Creating network configuration files" "$NAME"
$NETCONFIG < /etc/netconfig.json > /etc/network/interfaces
log_end_msg $?

0 comments on commit dfd2b5d

Please sign in to comment.