From dbf2854bb2ab4006792d1dfefc6021657f99b034 Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Wed, 3 Feb 2016 03:22:23 -0500 Subject: Add hooks or live-build. --- data/live-build-config/hooks/01-interfaces.chroot | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 data/live-build-config/hooks/01-interfaces.chroot (limited to 'data/live-build-config/hooks/01-interfaces.chroot') diff --git a/data/live-build-config/hooks/01-interfaces.chroot b/data/live-build-config/hooks/01-interfaces.chroot new file mode 100755 index 00000000..8d218ea4 --- /dev/null +++ b/data/live-build-config/hooks/01-interfaces.chroot @@ -0,0 +1,12 @@ +#!/bin/sh + +if ! grep '^auto lo' /etc/network/interfaces &> /dev/null ; then + mkdir -p -m 0755 /etc/network + cat >> /etc/network/interfaces <<-EOF + + # The loopback network interface + auto lo + iface lo inet loopback + + EOF +fi -- cgit v1.2.3