Skip to content

Commit

Permalink
pinetainer: tweak init.d and post-build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Sep 8, 2020
1 parent b2c6a38 commit 8beac13
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 64 deletions.
6 changes: 0 additions & 6 deletions board/pinetainer/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ rm "${1:?}/etc/init.d/ninfod.sh" 2>/dev/null || true

# Scripts in interpreted languages we can't run
rm "${1:?}/usr/bin/stunnel3" 2>/dev/null || true
rm "${1:?}/usr/bin/smime_keys" 2>/dev/null || true
rm "${1:?}/usr/sbin/exigrep" 2>/dev/null || true
rm "${1:?}/usr/sbin/eximstats" 2>/dev/null || true
rm "${1:?}/usr/sbin/exipick" 2>/dev/null || true
rm "${1:?}/usr/sbin/exiqgrep" 2>/dev/null || true
rm "${1:?}/usr/sbin/exiqsumm" 2>/dev/null || true
rm "${1:?}/etc/ssl/misc/tsget.pl" 2>/dev/null || true

# Empty directories created by gnuplot
Expand Down
4 changes: 2 additions & 2 deletions board/pinetainer/rootfs-overlay/etc/init.d/S00cgroups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ readonly MINIMUM_SYSTEM_IOPS_ALLOCATION=10
# high memory pressure when only less than the 25% of this memory is available
readonly MAXIMUM_SYSTEM_MEMORY=192M

# Limit the maximum number of processes that processes in the system cgroup can spawn.
# Limit the maximum number of processes that processes in the system cgroup can spawn
readonly MAXIMUM_SYSTEM_PIDS=512

# The file that represents high-level status information about the cgroups configuration
Expand Down Expand Up @@ -78,7 +78,7 @@ stop() {
echo "$pid" > "$CGROUP_HIERARCHY_MOUNTPOINT/cgroup.procs" || true
done && \
# Remove all children cgroups
find "$CGROUP_HIERARCHY_MOUNTPOINT"/* -type d -exec rm {} \; && \
find "$CGROUP_HIERARCHY_MOUNTPOINT"/* -type d -depth -exec rm {} \; && \
# Remove all the controllers. This also resets their configuration
shell_options_restore_cmds="$(set +o)" && \
set -f && \
Expand Down
56 changes: 0 additions & 56 deletions board/pinetainer/rootfs-overlay/etc/init.d/S50dropbear.sh

This file was deleted.

0 comments on commit 8beac13

Please sign in to comment.