mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-06-15 12:29:31 +00:00
kernel still breaking. updated name which may have been issue
This commit is contained in:
3
docs/solarpowered-main/files/shared/usr/bin/append
Executable file
3
docs/solarpowered-main/files/shared/usr/bin/append
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
/usr/bin/just --justfile /usr/share/appends/00-master.just "${@}"
|
||||
10
docs/solarpowered-main/files/shared/usr/bin/melonDS
Executable file
10
docs/solarpowered-main/files/shared/usr/bin/melonDS
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if any arguments were passed to the script
|
||||
if [ "$#" -gt 0 ]; then
|
||||
# If arguments are passed, include them in the flatpak run command
|
||||
flatpak run net.kuribo64.melonDS "$@"
|
||||
else
|
||||
# If no arguments are passed, just run the flatpak without any file
|
||||
flatpak run net.kuribo64.melonDS
|
||||
fi
|
||||
19
docs/solarpowered-main/files/shared/usr/bin/rechunker-group-fix
Executable file
19
docs/solarpowered-main/files/shared/usr/bin/rechunker-group-fix
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
IGNORE_MANUAL="wheel|root|sudo|nobody"
|
||||
for manually_created_user in $(grep -E -e ".*:[1-3][[:digit:]]{3}:.*" "$1") ; do
|
||||
# `grep` matched on a group with GID [1-3]000 or so
|
||||
if [ ! -z "$(cut -f4 -d: <<< "${manually_created_user}")" ] ; then
|
||||
continue
|
||||
fi
|
||||
IGNORE_MANUAL="$(cut -f1,3 -d: --output-delimiter="|" <<< "${manually_created_user}")|${IGNORE_MANUAL:-}"
|
||||
for related_group in $(grep "$(cut -f1 -d: <<< ${manually_created_user})" "$1"); do
|
||||
# Deduplicates matches for the same group/user
|
||||
if [ "$(cut -f1 <<< "${related_group}")" == "$(cut -f1 <<< "${manually_created_user}")" ] ; then
|
||||
continue
|
||||
fi
|
||||
IGNORE_MANUAL="$(cut -f1 -d: <<< "${related_group}")|${IGNORE_MANUAL:-}"
|
||||
done
|
||||
done
|
||||
|
||||
grep --no-filename -e "^g" /usr/lib/sysusers.d/*.conf | grep -v -E -e "${IGNORE_MANUAL}" | tr -s " " | cut -d" " -f2 | uniq | xargs -I{} sed -i "/{}/d" "${1}"
|
||||
10
docs/solarpowered-main/files/shared/usr/bin/ryujinx
Executable file
10
docs/solarpowered-main/files/shared/usr/bin/ryujinx
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if any arguments were passed to the script
|
||||
if [ "$#" -gt 0 ]; then
|
||||
# If arguments are passed, include them in the flatpak run command
|
||||
flatpak run io.github.ryubing.Ryujinx "$@"
|
||||
else
|
||||
# If no arguments are passed, just run the flatpak without any file
|
||||
flatpak run io.github.ryubing.Ryujinx
|
||||
fi
|
||||
27
docs/solarpowered-main/files/shared/usr/bin/waydroid-session
Executable file
27
docs/solarpowered-main/files/shared/usr/bin/waydroid-session
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
||||
eval $(dbus-launch --sh-syntax)
|
||||
fi
|
||||
|
||||
mutter --wayland &
|
||||
MUTTER_PID=$!
|
||||
sleep 5
|
||||
export DISPLAY=:1
|
||||
|
||||
# Start Waydroid in the background
|
||||
waydroid show-full-ui &
|
||||
WAYDROID_PID=$!
|
||||
|
||||
# Wait for Waydroid exit event in the log
|
||||
tail -f -n0 /var/lib/waydroid/waydroid.log | grep -m1 run_buffer
|
||||
|
||||
# Cleanup and logout
|
||||
kill $WAYDROID_PID
|
||||
kill $MUTTER_PID
|
||||
|
||||
# Use loginctl to end the session gracefully
|
||||
loginctl terminate-session "$XDG_SESSION_ID"
|
||||
|
||||
exit 0
|
||||
27
docs/solarpowered-main/files/shared/usr/bin/zstar
Executable file
27
docs/solarpowered-main/files/shared/usr/bin/zstar
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Define directory & target filename
|
||||
directory="$1"
|
||||
filename="$2"
|
||||
|
||||
# Check if the filename already has .tar.zst; if not, append it
|
||||
if [[ ! "$filename" =~ \.tar\.zst$ ]]; then
|
||||
archive="$filename.tar.zst"
|
||||
else
|
||||
archive="$filename"
|
||||
fi
|
||||
|
||||
# Make sure the directory exists
|
||||
if [[ ! -d "$directory" ]]; then
|
||||
echo "Directory '$directory' not found."
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Create the archive with tar and pipe it to zstd
|
||||
tar -cvf - "$directory" | zstd -9 -T0 -o "$archive"
|
||||
|
||||
# Check for errors during compression
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Error during compression."
|
||||
return 1
|
||||
fi
|
||||
Reference in New Issue
Block a user