summaryrefslogtreecommitdiff
path: root/stage2
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2017-07-17 14:15:48 +0100
committerSerge Schneider <serge@raspberrypi.org>2017-07-28 13:35:46 +0100
commit8f361a1c38f0cc00d7a04486a93b2fe29f67ee5c (patch)
tree2c5d7895d88c05726b709b2c2b1e81981ebb395b /stage2
parent68cdf34cb44e23b9076d7796147070bc3cc0a51f (diff)
Switch to Stretch
Diffstat (limited to 'stage2')
-rw-r--r--stage2/01-sys-tweaks/00-packages2
-rw-r--r--stage2/01-sys-tweaks/00-patches/series1
-rwxr-xr-xstage2/01-sys-tweaks/01-run.sh2
-rwxr-xr-xstage2/01-sys-tweaks/files/rc.local20
-rw-r--r--stage2/EXPORT_NOOBS2
5 files changed, 24 insertions, 3 deletions
diff --git a/stage2/01-sys-tweaks/00-packages b/stage2/01-sys-tweaks/00-packages
index 1f26b57..8b6173f 100644
--- a/stage2/01-sys-tweaks/00-packages
+++ b/stage2/01-sys-tweaks/00-packages
@@ -1,4 +1,4 @@
-ssh less fbset sudo psmisc strace module-init-tools ed ncdu crda
+ssh less fbset sudo psmisc strace ed ncdu crda
console-setup keyboard-configuration debconf-utils parted unzip
build-essential manpages-dev python bash-completion gdb pkg-config
python-rpi.gpio v4l-utils
diff --git a/stage2/01-sys-tweaks/00-patches/series b/stage2/01-sys-tweaks/00-patches/series
index 8273f0c..aee0402 100644
--- a/stage2/01-sys-tweaks/00-patches/series
+++ b/stage2/01-sys-tweaks/00-patches/series
@@ -2,5 +2,4 @@
02-swap.diff
04-inputrc.diff
05-path.diff
-06-rc_local.diff
07-resize-init.diff
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh
index c10705c..e92ceff 100755
--- a/stage2/01-sys-tweaks/01-run.sh
+++ b/stage2/01-sys-tweaks/01-run.sh
@@ -11,6 +11,8 @@ install -m 644 files/50raspi ${ROOTFS_DIR}/etc/apt/apt.conf.d/
install -m 644 files/console-setup ${ROOTFS_DIR}/etc/default/
+install -m 755 files/rc.local ${ROOTFS_DIR}/etc/
+
on_chroot << EOF
systemctl disable hwclock.sh
systemctl disable nfs-common
diff --git a/stage2/01-sys-tweaks/files/rc.local b/stage2/01-sys-tweaks/files/rc.local
new file mode 100755
index 0000000..7d39ed7
--- /dev/null
+++ b/stage2/01-sys-tweaks/files/rc.local
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+#
+# rc.local
+#
+# This script is executed at the end of each multiuser runlevel.
+# Make sure that the script will "exit 0" on success or any other
+# value on error.
+#
+# In order to enable or disable this script just change the execution
+# bits.
+#
+# By default this script does nothing.
+
+# Print the IP address
+_IP=$(hostname -I) || true
+if [ "$_IP" ]; then
+ printf "My IP address is %s\n" "$_IP"
+fi
+
+exit 0
diff --git a/stage2/EXPORT_NOOBS b/stage2/EXPORT_NOOBS
index cc925cd..b741334 100644
--- a/stage2/EXPORT_NOOBS
+++ b/stage2/EXPORT_NOOBS
@@ -1,2 +1,2 @@
NOOBS_NAME="Raspbian Lite"
-NOOBS_DESCRIPTION="A port of Debian jessie for the Raspberry Pi (minimal version)"
+NOOBS_DESCRIPTION="A port of Debian Stretch for the Raspberry Pi (minimal version)"