This commit is contained in:
Michal S.
2026-08-04 17:59:44 +01:00
commit 69071efd58
123 changed files with 7728 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
# minute hour day month weekday user command
+5
View File
@@ -0,0 +1,5 @@
set path = ( /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin )
if ( $?prompt ) then
set prompt = "mouse:%~%# "
endif
+4
View File
@@ -0,0 +1,4 @@
umask 022
setenv SHELL /bin/tcsh
cd
+7
View File
@@ -0,0 +1,7 @@
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/tcsh
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
+3
View File
@@ -0,0 +1,3 @@
# Package-owned kernel modules live on persistent /usr/local.
external * /usr/local/lib/modules
search external built-in
+4
View File
@@ -0,0 +1,4 @@
# The base image manages one wired interface.
allowinterfaces eth0
interface eth0
metric 100
+6
View File
@@ -0,0 +1,6 @@
root:x:0:root,toor
tty:x:5:
uucp:x:14:
users:x:100:
dhcpcd:x:101:
_ntp:x:102:
+1
View File
@@ -0,0 +1 @@
mouse
+2
View File
@@ -0,0 +1,2 @@
127.0.0.1 localhost mouse
::1 localhost mouse
+18
View File
@@ -0,0 +1,18 @@
ENV_PATH PATH=/bin:/usr/bin:/usr/local/bin
ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
MAIL_DIR /var/mail
HUSHLOGIN_FILE .hushlogin
LOGIN_TIMEOUT 60
MOTD_FILE /etc/motd
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_WARN_AGE 7
TTYGROUP tty
TTYPERM 0600
UID_MIN 1000
UID_MAX 60000
GID_MIN 1000
GID_MAX 60000
CREATE_HOME yes
USERGROUPS_ENAB yes
ENCRYPT_METHOD SHA512
+13
View File
@@ -0,0 +1,13 @@
# Load the exact module matching a kernel device alias. Device nodes themselves
# are supplied by devtmpfs and mdevd applies conservative default ownership.
$MODALIAS=.* root:root 0600 @modprobe -qb "$MODALIAS"
null root:root 0666
zero root:root 0666
full root:root 0666
random root:root 0444
urandom root:root 0444
console root:tty 0600
tty root:tty 0666
tty[0-9]* root:tty 0660
ttyS[0-9]* root:uucp 0660
.* root:root 0600
+2
View File
@@ -0,0 +1,2 @@
MOUSE 0.1.0 (x86_64)
Monolithic Opinionated Unix-like System Environment
+6
View File
@@ -0,0 +1,6 @@
NAME=MOUSE
ID=mouse
PRETTY_NAME="MOUSE 0.1.0"
VERSION="0.1.0"
VERSION_ID=0.1.0
ARCHITECTURE=x86_64
+1
View File
@@ -0,0 +1 @@
servers pool.ntp.org
+4
View File
@@ -0,0 +1,4 @@
root:x:0:0:root:/root:/bin/sh
toor:x:0:0:BSD-style root account:/root:/bin/tcsh
dhcpcd:x:101:101:dhcpcd privilege separation:/var/empty:/sbin/nologin
_ntp:x:102:102:OpenNTPD privilege separation:/var/empty:/sbin/nologin
+4
View File
@@ -0,0 +1,4 @@
# Persistent MOUSE service policy belongs in this file.
enable_network=YES
enable_cron=YES
enable_ntpd=YES
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
# PROVIDE: console_login
# REQUIRE: LOGIN
. /etc/rc.subr
name=console_login
start_precmd=console_login_prestart
start_cmd=console_login_start
stop_cmd=:
autologin=
if grep -qw mouse.autologin=1 /proc/cmdline; then
autologin="--autologin root"
fi
console_login_prestart()
{
[ -e /run/utmp ] || : > /run/utmp
[ -e /var/log/wtmp ] || : > /var/log/wtmp
chmod 0664 /run/utmp /var/log/wtmp
}
console_login_start()
{
/usr/bin/setsid -f /sbin/agetty $autologin \
--login-program /bin/login --noclear --keep-baud \
115200,38400,9600 ttyS0 vt100 &
/usr/bin/setsid -f /sbin/agetty $autologin \
--login-program /bin/login --noclear tty1 linux &
}
run_rc_command "$1"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# PROVIDE: cron
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name=cron
command=/usr/sbin/cron
command_args="-n -s &"
run_rc_command "$1"
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# PROVIDE: DAEMON
# REQUIRE: machine_identity
. /etc/rc.subr
name=daemon
start_cmd=:
stop_cmd=:
run_rc_command "$1"
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# PROVIDE: LOGIN
# REQUIRE: DAEMON
. /etc/rc.subr
name=login
start_cmd=:
stop_cmd=:
run_rc_command "$1"
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
# PROVIDE: LOOPBACK
# BEFORE: DAEMON
. /etc/rc.subr
name=loopback
loopback_start()
{
/sbin/ip link set lo up
/sbin/ip address replace 127.0.0.1/8 dev lo
/sbin/ip -6 address replace ::1/128 dev lo
}
start_cmd=loopback_start
stop_cmd=:
status_cmd=:
run_rc_command "$1"
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
# PROVIDE: machine_identity
. /etc/rc.subr
name=machine_identity
start_cmd=machine_identity_start
stop_cmd=:
machine_identity_start()
{
if [ ! -s /etc/machine-id ]; then
sed 's/-//g' /proc/sys/kernel/random/uuid > /etc/machine-id.new ||
return 1
chmod 0444 /etc/machine-id.new || return 1
mv /etc/machine-id.new /etc/machine-id || return 1
fi
}
run_rc_command "$1"
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# PROVIDE: mdevd DEVFS
# BEFORE: machine_identity
. /etc/rc.subr
name=mdevd
command=/sbin/mdevd
command_args="-C &"
run_rc_command "$1"
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
# PROVIDE: network NETWORKING
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name=network
command=/sbin/dhcpcd
command_args="-4 -b -q -c /usr/libexec/mouse-dhcpcd-hook"
start_precmd=network_prestart
start_postcmd=network_poststart
stop_postcmd=network_poststop
network_prestart()
{
rm -f /run/mouse-network.ready
}
network_poststart()
{
waited=0
while [ ! -f /run/mouse-network.ready ]; do
if [ "$waited" -ge 20 ]; then
echo "timed out waiting for an IPv4 DHCP lease" >&2
return 1
fi
sleep 1
waited=$((waited + 1))
done
}
network_poststop()
{
rm -f /run/mouse-network.ready
}
run_rc_command "$1"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# PROVIDE: ntpd TIMESYNC
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name=ntpd
command=/usr/sbin/ntpd
command_args="-d &"
run_rc_command "$1"
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# PROVIDE: SERVERS
# REQUIRE: DAEMON
. /etc/rc.subr
name=servers
start_cmd=:
stop_cmd=:
run_rc_command "$1"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# PROVIDE: syslogd LOGGER
# REQUIRE: machine_identity
# BEFORE: DAEMON
. /etc/rc.subr
name=syslogd
command=/usr/sbin/syslogd
command_args="-F -ss -f /etc/syslog.conf &"
run_rc_command "$1"
+1
View File
@@ -0,0 +1 @@
ttyS0
+1
View File
@@ -0,0 +1 @@
ntp 123/udp
+4
View File
@@ -0,0 +1,4 @@
root:$6$mouse$LofYSsSObtmx/zmS97A.TFONKSQSATXE4bD6dY1H7JSBSayuyAuc4Qwpm7JdfW9lUnri9DrQfUKGiLTNKA3v81:1:0:99999:7:::
toor:$6$mouse$LofYSsSObtmx/zmS97A.TFONKSQSATXE4bD6dY1H7JSBSayuyAuc4Qwpm7JdfW9lUnri9DrQfUKGiLTNKA3v81:1:0:99999:7:::
dhcpcd:!:1:0:99999:7:::
_ntp:!:1:0:99999:7:::
+2
View File
@@ -0,0 +1,2 @@
/bin/sh
/bin/tcsh
+10
View File
@@ -0,0 +1,10 @@
# Keep the base logger local. Remote collection is an explicit package policy.
secure_mode 2
rotate_size 1M
rotate_count 5
auth,authpriv.* /var/log/auth.log
cron.* -/var/log/cron.log
kern.* -/var/log/kern.log
*.*;auth,authpriv.none -/var/log/messages
*.=emerg *
+8
View File
@@ -0,0 +1,8 @@
# Login defaults for the POSIX root account.
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
export PATH
PS1='mouse:~# '
export PS1
umask 022
@@ -0,0 +1,8 @@
machine_identity
loopback
mdevd
syslogd
daemon
login
servers
console_login
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
set -eu
case "${reason:-}" in
BOUND|REBIND|REBOOT|RENEW)
temporary=/run/resolv.conf.new
: >"$temporary"
for server in ${new_domain_name_servers:-}; do
printf 'nameserver %s\n' "$server" >>"$temporary"
done
if [ ! -s "$temporary" ]; then
rm -f "$temporary"
exit 1
fi
chmod 0644 "$temporary"
mv "$temporary" /etc/resolv.conf
printf '%s\n' "${new_ip_address:-unknown}" > /run/mouse-network.ready
;;
EXPIRE|FAIL|NAK|RELEASE|STOP|STOPPED)
rm -f /run/mouse-network.ready
;;
esac