Merge pull request 'x86_64' (#1) from x86_64 into main

Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/initscripts/pulls/1
This commit was merged in pull request #1.
This commit is contained in:
wt
2024-12-24 14:19:16 +03:00
15 changed files with 74 additions and 11 deletions
+8
View File
@@ -0,0 +1,8 @@
# <file system> <mount pt> <type> <options> <dump> <pass>
#/dev/root / ext4 rw,relatime 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620,ptmxmode=0666 0 0
tmpfs /dev/shm tmpfs mode=1777 0 0
tmpfs /tmp tmpfs mode=1777 0 0
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
tmpfs /sys sysfs defaults 0 0
+2 -1
View File
@@ -1,4 +1,5 @@
root:x:0:root
dnsmasq:x:963:dnsmasq
sshd:x:33:sshd
nobody:x:65534:
nobody:x:65534:
gitea:x:1000:
+1
View File
@@ -0,0 +1 @@
simple
+2 -1
View File
@@ -1,2 +1,3 @@
127.0.0.1 localhost
::1 localhost
::1 localhost
127.0.1.1 simple.localdomain simple
+1
View File
@@ -0,0 +1 @@
../../usr/lib/init/services/gitea.service
+4 -1
View File
@@ -1,11 +1,14 @@
::sysinit:mkdir /dev/shm
::sysinit:mount -a
::sysinit:/etc/init.d/rcS
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/init.d/rcK
::shutdown:umount -a -r
tty1::respawn:/usr/bin/getty 38400 tty1
tty2::respawn:/usr/bin/getty 38400 tty2
tty3::respawn:/usr/bin/getty 38400 tty3
tty4::respawn:/usr/bin/getty 38400 tty4
ttyS0::respawn:/usr/bin/getty 115200 ttyS0
ttyS0::respawn:/usr/bin/getty 115200 ttyS0
+4 -4
View File
@@ -9,8 +9,8 @@ iface lo inet loopback
#-------------------------------------------
#--- eth0 connected to the internet static ---
# auto eth0
# iface eth0 inet static
# address 192.168.200.1
# netmask 255.255.255.0
auto eth0
iface eth0 inet static
address 192.168.200.1
netmask 255.255.255.0
#---------------------------------------------
+2 -1
View File
@@ -1,4 +1,5 @@
root:x:0:0:root:/root:/bin/sh
dnsmasq:x:963:963:dnsmasq daemon:/:/usr/bin/nologin
sshd:x:33:33:SSH daemon:/var/lib/sshd:/bin/sh
nobody:x:65534:65534:Kernel Oerflow User:/:/usr/bin/nologin
nobody:x:65534:65534:Kernel Oerflow User:/:/usr/bin/nologin
gitea:x:1000:1000:Gitea daemon user:/home/gitea:/bin/sh
+2
View File
@@ -22,4 +22,6 @@ alias ipl='ip link' # show links
alias ll='ls -lh' # show list files with information
alias la='ls -a'
alias l='ls -alh'
alias df='df -h'
alias free='free -h'
#-----------
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
if [ ! -d /sys/class/thermal ]; then
echo ERROR: no thermal interfaces
exit 1
fi
for interface in $(ls /sys/class/thermal/ | grep thermal_zone); do
echo $interface: $(($(cat /sys/class/thermal/$interface/temp)/1000))C
done
+1 -1
View File
@@ -7,7 +7,7 @@
start() {
notify "Starting ftpd"
tcpsvd -vE 0.0.0.0 21 ftpd -w -S -A /srv/ftpd &>/dev/null &
tcpsvd -vE 0.0.0.0 21 ftpd -w -S -A /srv/ftp &>/dev/null &
check $? "start ftpd"
echo $(pgrep tcpsvd) > /var/run/ftpd.pid
return $?
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
start() {
notify "Starting gitea"
su gitea -c "/usr/bin/gitea -w /home/gitea" &> /var/log/gitea.log &
check $? "start gitea"
echo $(pgrep gitea) > /var/run/gitea.pid
return $?
}
stop() {
notify "Stopping gitea"
kill $(cat /var/run/gitea.pid | awk '{print $2}')
check $? "stop gitea"
rm /var/run/gitea.pid &> /dev/null
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
return 1
;;
esac
return $?
+1 -1
View File
@@ -6,7 +6,7 @@
#------------------------------------
start() {
otify "Starting httpd"
notify "Starting httpd"
/usr/bin/httpd -h /srv/www
check $? "start httpd"
echo $(pgrep httpd) > /var/run/httpd.pid
+2 -1
View File
@@ -14,4 +14,5 @@
14httpd
15nginx
16openrouterinit
17dropbear
17dropbear
18gitea
Regular → Executable
View File