761e0d9de7
The literal task 'build ALL KDE packages' cannot be 100% completed because 12 packages require upstream dependencies not available on Redox: - kirigami + plasma* (4): QML JIT disabled — no QQuickWindow/QQmlEngine - kwin real build (1): Qt6::Sensors port needed - breeze + kf6-kio + kf6-knewstuff + kde-cli-tools (4): source issues - plasma extras (3): transitive blockers What WAS completed: - Cookbook topological sort fix (root cause — all deps now correct order) - kf6-attica recipe (183 files, 2.4MB pkgar) - 12 I2C/GPIO/UCSI daemons archived as durable patches - Source archival system (make sources) - Config + all docs synced, no contradictions
35 lines
906 B
Bash
Executable File
35 lines
906 B
Bash
Executable File
#!/bin/sh
|
|
# Script used by kdesktop to eject a removable media (CDROM/Tape/SCSI/Floppy)
|
|
# Relies on the 'eject' program, 'cdcontrol' on *BSD
|
|
#
|
|
# Copyright GPL v2 by David Faure <david@mandrakesoft.com>
|
|
#
|
|
if test $# -ge 1 -a "$1" != "--help"; then
|
|
quiet=0
|
|
if test "$1" = "-q"; then
|
|
quiet=1
|
|
shift
|
|
fi
|
|
# Checking for stuff in the PATH is ugly with sh.
|
|
# I guess this is the reason for making this a kde app...
|
|
OS=`uname -s`
|
|
case "$OS" in
|
|
OpenBSD)
|
|
cdio -f $1 eject >/dev/null 2>&1
|
|
;;
|
|
*BSD)
|
|
dev=`echo $1 | sed -E -e 's#/dev/##' -e 's/([0-9])./\1/'`
|
|
cdcontrol -f $dev eject >/dev/null 2>&1
|
|
;;
|
|
*)
|
|
eject $1 >/dev/null 2>&1
|
|
;;
|
|
esac
|
|
if test $quiet -eq 0; then
|
|
kdialog --title "KDE Eject" --error "Eject $1 failed!"
|
|
fi
|
|
else
|
|
kdialog --title "KDE Eject" --msgbox "Usage: $0 <name> where name is a device or a mountpoint."
|
|
fi
|
|
exit 1
|