busybox-1.36.1-r15.Q1AYNx2pLOAHRYZQgv3nM8TNtvRWY=.post-install000075500000000000000000000000213014543014606022107 0ustar rootroot#!/bin/busybox sh # We need the symlinks early /bin/busybox mkdir -p "/bin" "/sbin" "/usr/bin" "/usr/sbin" exec /bin/busybox --install -s busybox-1.36.1-r15.Q1AYNx2pLOAHRYZQgv3nM8TNtvRWY=.post-upgrade000075500000000000000000000002327014543014606022100 0ustar rootroot#!/bin/busybox 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' # The "2>/dev/null" is used to stop "can't stat" warnings appearing on # the console for each new command added by the new version of the # busybox package. # - 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" 2>/dev/null \ | 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.36.1-r15.Q1AYNx2pLOAHRYZQgv3nM8TNtvRWY=.trigger000075500000000000000000000001042014543014606021122 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.4.3-r2.Q16vHLRZoP2NZ2lLj3reL8p+l/YE4=.pre-install000075500000000000000000000000070014543014606023231 0ustar rootroot#!/bin/sh addgroup -S -g 42 shadow 2>/dev/null exit 0 alpine-baselayout-3.4.3-r2.Q16vHLRZoP2NZ2lLj3reL8p+l/YE4=.post-install000075500000000000000000000001727014543014606023442 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.4.3-r2.Q16vHLRZoP2NZ2lLj3reL8p+l/YE4=.pre-upgrade000075500000000000000000000001363014543014606023220 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 ] && [ ! -L /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 ] && [ ! -L /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.4.3-r2.Q16vHLRZoP2NZ2lLj3reL8p+l/YE4=.post-upgrade000075500000000000000000000001727014543014606023423 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