busybox-1.34.1-r5.Q1LUyPKIKzUK6vpJcBj+O404efawg=.post-install0000755000000000000000000000020314222613566021636 0ustar rootroot#!/bin/sh # We need the symlinks early /bin/busybox mkdir -p "/bin" "/sbin" "/usr/bin" "/usr/sbin" exec /bin/busybox --install -s busybox-1.34.1-r5.Q1LUyPKIKzUK6vpJcBj+O404efawg=.post-upgrade0000755000000000000000000000204014222613566021620 0ustar rootroot#!/bin/sh # remove links that has been relocated or removed # - generate a list of all symlinks in bin dirs and a list with all busybox # applets # - sort the list and print all lines that are unique. This is the list of # symlinks that does not exist in the busybox applets list. # - use stat to find the target of those symlinks printed as: # '/path/to/symlink' -> '/path/to/target' # - use awk to print the symlinks that points to '/bin/busybox' # - use sed to strip the leading and training ' chars # - finally pass the list to rm for removing the symlinks that points to # busybox but does not exist in the `busybox --list-all` list cd / ( find bin sbin usr/bin usr/sbin -maxdepth 1 -type l; busybox --list-all) \ | sort | uniq -u \ | xargs -r stat -c "%N" \ | awk "\$3 == \"'/bin/busybox'\" {print \$1}" \ | sed "s/^'//; s/'$//" \ | xargs -r rm for link in /bin/ping /bin/ping6; do if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/bbsuid" ]; then rm "$link" fi done # We need the symlinks early exec /bin/busybox --install -s busybox-1.34.1-r5.Q1LUyPKIKzUK6vpJcBj+O404efawg=.trigger0000755000000000000000000000104214222613566020652 0ustar rootroot#!/bin/sh do_bb_install= for i in "$@"; do case "$i" in /lib/modules/*) # don't run busybox depmod if we have kmod installed # we dont need to run it twice. target=$(readlink -f "$(command -v depmod || true)") if [ -d "$i" ] && [ "$target" = "/bin/busybox" ]; then /bin/busybox depmod ${i#/lib/modules/} fi ;; *) do_bb_install=yes;; esac done if [ -n "$do_bb_install" ]; then [ -e /bin/bbsuid ] && /bin/bbsuid --install [ -e /bin/busybox-extras ] && /bin/busybox-extras --install -s /bin/busybox --install -s fi alpine-baselayout-3.2.0-r18.Q1EymS6rAgmGs7XYhqdyEoiWgEZ6A=.pre-install0000755000000000000000000000007014222613566023604 0ustar rootroot#!/bin/sh addgroup -S -g 42 shadow 2>/dev/null exit 0 alpine-baselayout-3.2.0-r18.Q1EymS6rAgmGs7XYhqdyEoiWgEZ6A=.post-install0000755000000000000000000000172714222613566024015 0ustar rootroot#!/bin/sh create_vserver_startstop() { cat <<__EOF__ #!/bin/sh # This file is for compatibility case \${0##*/} in rcL) RUNLEVEL=1 /sbin/rc sysinit || exit 1 /sbin/rc boot || exit 1 /sbin/rc \${1:-default} exit 0 ;; rcK) /sbin/rc shutdown ;; esac __EOF__ } # create compat start/stop scripts for vserver guests if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then # create rcL and rcK if ! [ -e /etc/init.d/rcL ]; then create_vserver_startstop > /etc/init.d/rcL chmod +x /etc/init.d/rcL fi if ! [ -e /etc/init.d/rcK ]; then ln -s rcL /etc/init.d/rcK fi fi # force /etc/shadow to be owned by root and not be world readable chown root:shadow /etc/shadow chmod 640 /etc/shadow # update color_prompt.sh symlink (if exists) after we renamed color_prompt to # color_prompt.sh.disabled. case "$(readlink /etc/profile.d/color_prompt.sh 2>/dev/null || true)" in color_prompt) ln -sf color_prompt.sh.disabled /etc/profile.d/color_prompt.sh;; esac exit 0 alpine-baselayout-3.2.0-r18.Q1EymS6rAgmGs7XYhqdyEoiWgEZ6A=.pre-upgrade0000755000000000000000000000130214222613566023564 0ustar rootroot#!/bin/sh # we need to have our modprobe.d files with .conf suffix for i in /etc/modprobe.d/*; do # ignore files that does not exist (i.e if modprobe.d is empty) [ -r "$i" ] || continue # ignore files that have an extension case "$i" in *.*) continue;; esac # append extension mv "$i" "$i".conf done # migrate /var/run directory to /run if [ -d /var/run ]; then cp -a /var/run/* /run 2>/dev/null rm -rf /var/run ln -s ../run /var/run fi # migrate /var/spool/mail directory to /var/mail if [ -d /var/spool/mail ]; then mkdir -p /var/mail cp -a /var/spool/mail/* /var/mail/ 2>/dev/null rm -rf /var/spool/mail ln -s ../mail /var/spool/mail fi addgroup -S -g 42 shadow 2>/dev/null exit 0 alpine-baselayout-3.2.0-r18.Q1EymS6rAgmGs7XYhqdyEoiWgEZ6A=.post-upgrade0000755000000000000000000000172714222613566023776 0ustar rootroot#!/bin/sh create_vserver_startstop() { cat <<__EOF__ #!/bin/sh # This file is for compatibility case \${0##*/} in rcL) RUNLEVEL=1 /sbin/rc sysinit || exit 1 /sbin/rc boot || exit 1 /sbin/rc \${1:-default} exit 0 ;; rcK) /sbin/rc shutdown ;; esac __EOF__ } # create compat start/stop scripts for vserver guests if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then # create rcL and rcK if ! [ -e /etc/init.d/rcL ]; then create_vserver_startstop > /etc/init.d/rcL chmod +x /etc/init.d/rcL fi if ! [ -e /etc/init.d/rcK ]; then ln -s rcL /etc/init.d/rcK fi fi # force /etc/shadow to be owned by root and not be world readable chown root:shadow /etc/shadow chmod 640 /etc/shadow # update color_prompt.sh symlink (if exists) after we renamed color_prompt to # color_prompt.sh.disabled. case "$(readlink /etc/profile.d/color_prompt.sh 2>/dev/null || true)" in color_prompt) ln -sf color_prompt.sh.disabled /etc/profile.d/color_prompt.sh;; esac exit 0