mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
6e50489fed
a/pkgtools-15.0-noarch-39.txz: Rebuilt. upgradepkg: revert change where $ROOT/sbin/installpkg is called instead of /sbin/installpkg. Conceptually, this seemed like a nice change (but would have also required removepkg to be called the same way), but it seems to break an established expectation that the pkgtools can be used without them actually being installed in $ROOT. Thanks to alienBOB. a/sysvinit-scripts-15.0-noarch-2.txz: Rebuilt. Use #!/bin/bash for these scripts so that bashisms don't cause script issues if /bin/sh is some other shell. Thanks to mumahendras3. rc.S: Use GazL's proposals for detecting/mounting /proc and /sys. d/parallel-20210422-noarch-1.txz: Upgraded. l/glib-networking-2.68.1-x86_64-1.txz: Upgraded. l/gtk+3-3.24.29-x86_64-1.txz: Upgraded. x/igt-gpu-tools-1.26-x86_64-1.txz: Upgraded. isolinux/initrd.img: Rebuilt. Rebuild with pkgtools-15.0-noarch-39. usb-and-pxe-installers/usbboot.img: Rebuilt. Rebuild with pkgtools-15.0-noarch-39.
56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
#!/bin/bash
|
|
#
|
|
# rc.sysvinit This file provides basic compatibility with SystemV style
|
|
# startup scripts. The SystemV style init system places
|
|
# start/stop scripts for each runlevel into directories such as
|
|
# /etc/rc.d/rc3.d/ (for runlevel 3) instead of starting them
|
|
# from /etc/rc.d/rc.M. This makes for a lot more init scripts,
|
|
# and a more complicated execution path to follow through if
|
|
# something goes wrong. For this reason, Slackware has always
|
|
# used the traditional BSD style init script layout.
|
|
#
|
|
# However, many binary packages exist that install SystemV
|
|
# init scripts. With rc.sysvinit in place, most well-written
|
|
# startup scripts will work. This is primarily intended to
|
|
# support commercial software, though, and probably shouldn't
|
|
# be considered bug free.
|
|
#
|
|
# Written by Patrick Volkerding <volkerdi@slackware.com>, 1999
|
|
# from an example by Miquel van Smoorenburg <miquels@cistron.nl>.
|
|
|
|
# Run an init script:
|
|
startup() {
|
|
case "$1" in
|
|
*.sh)
|
|
sh "$@"
|
|
;;
|
|
*)
|
|
"$@"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
# Set onlcr to avoid staircase effect.
|
|
stty onlcr 0>&1
|
|
|
|
if [ "$runlevel" = "" ]; then
|
|
runlevel=$RUNLEVEL
|
|
export runlevel
|
|
prevlevel=$PREVLEVEL
|
|
export prevlevel
|
|
fi
|
|
|
|
# Run kill scripts:
|
|
for script in /etc/rc.d/rc$runlevel.d/K* ; do
|
|
if [ -x $script ]; then
|
|
startup $script stop
|
|
fi
|
|
done
|
|
|
|
# Now do the startup scripts:
|
|
for script in /etc/rc.d/rc$runlevel.d/S* ; do
|
|
if [ -x $script ]; then
|
|
startup $script start
|
|
fi
|
|
done
|
|
|