From 50185d5620ef75e7028749e2227c2390bd0dcd2f Mon Sep 17 00:00:00 2001 From: Daniel Gnoutcheff Date: Sun, 29 Mar 2015 13:30:17 -0400 Subject: [PATCH] Kill /usr/share/getopt This directory had example scripts for util-linux's getopt. They count as documentation and don't belong on an embedded rootfs. This also reduces the diff to RescueOS v1.1; this directory was (presumably manually) removed there as well. Also cleanup post-build.sh a bit while we're at it. --- post-build.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/post-build.sh b/post-build.sh index fb12861..6b72b62 100755 --- a/post-build.sh +++ b/post-build.sh @@ -4,11 +4,14 @@ set -e target="$1" -delfiles=" \ - $target/etc/init.d/rcK \ - $target/etc/init.d/S20urandom \ - $target/etc/init.d/S40network \ +delfiles=" + $target/etc/init.d/rcK + $target/etc/init.d/S20urandom + $target/etc/init.d/S40network $target/etc/securetty" + for file in $delfiles ; do - [ -e "$file" ] && rm "$file" || true + [ ! -e "$file" ] || rm "$file" done + +[ ! -e "$target/usr/share/getopt" ] || rm -r "$target/usr/share/getopt"