Files
Astral/distro-files/etc/rc
T
2025-09-12 19:28:39 -03:00

27 lines
484 B
Bash

#!/usr/bin/bash
mkdir -p /dev
mount /dev devfs
chmod 0755 /dev
mkdir -p /dev/shm
mount /dev/shm tmpfs
chmod 1777 /dev/shm
mkdir -p /tmp
mount /tmp tmpfs
chmod 1777 /tmp
chmod 0755 /dev/pts
# required to be owned by root and sticky for rootless Xorg.
mkdir -p /tmp/.X11-unix
chmod 1777 /tmp/.X11-unix
/usr/sbin/acpid
# do first time boot configuration if needed
if [ ! -f "/var/lib/.first_boot_done" ]; then
echo rc: running first boot script
/usr/libexec/astral/first-boot
fi