rescueOS/post-build.sh
Daniel Gnoutcheff 50185d5620 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.
2015-04-02 21:16:32 -04:00

18 righe
299 B
Bash
Executable File

#!/bin/bash
set -e
target="$1"
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"
done
[ ! -e "$target/usr/share/getopt" ] || rm -r "$target/usr/share/getopt"