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:
@@ -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
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
root:x:0:root
|
root:x:0:root
|
||||||
dnsmasq:x:963:dnsmasq
|
dnsmasq:x:963:dnsmasq
|
||||||
sshd:x:33:sshd
|
sshd:x:33:sshd
|
||||||
nobody:x:65534:
|
nobody:x:65534:
|
||||||
|
gitea:x:1000:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
simple
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
::1 localhost
|
::1 localhost
|
||||||
|
127.0.1.1 simple.localdomain simple
|
||||||
|
|||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
../../usr/lib/init/services/gitea.service
|
||||||
+4
-1
@@ -1,11 +1,14 @@
|
|||||||
|
::sysinit:mkdir /dev/shm
|
||||||
|
::sysinit:mount -a
|
||||||
::sysinit:/etc/init.d/rcS
|
::sysinit:/etc/init.d/rcS
|
||||||
|
|
||||||
::ctrlaltdel:/sbin/reboot
|
::ctrlaltdel:/sbin/reboot
|
||||||
::shutdown:/etc/init.d/rcK
|
::shutdown:/etc/init.d/rcK
|
||||||
|
::shutdown:umount -a -r
|
||||||
|
|
||||||
tty1::respawn:/usr/bin/getty 38400 tty1
|
tty1::respawn:/usr/bin/getty 38400 tty1
|
||||||
tty2::respawn:/usr/bin/getty 38400 tty2
|
tty2::respawn:/usr/bin/getty 38400 tty2
|
||||||
tty3::respawn:/usr/bin/getty 38400 tty3
|
tty3::respawn:/usr/bin/getty 38400 tty3
|
||||||
tty4::respawn:/usr/bin/getty 38400 tty4
|
tty4::respawn:/usr/bin/getty 38400 tty4
|
||||||
|
|
||||||
ttyS0::respawn:/usr/bin/getty 115200 ttyS0
|
ttyS0::respawn:/usr/bin/getty 115200 ttyS0
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ iface lo inet loopback
|
|||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
|
|
||||||
#--- eth0 connected to the internet static ---
|
#--- eth0 connected to the internet static ---
|
||||||
# auto eth0
|
auto eth0
|
||||||
# iface eth0 inet static
|
iface eth0 inet static
|
||||||
# address 192.168.200.1
|
address 192.168.200.1
|
||||||
# netmask 255.255.255.0
|
netmask 255.255.255.0
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
root:x:0:0:root:/root:/bin/sh
|
root:x:0:0:root:/root:/bin/sh
|
||||||
dnsmasq:x:963:963:dnsmasq daemon:/:/usr/bin/nologin
|
dnsmasq:x:963:963:dnsmasq daemon:/:/usr/bin/nologin
|
||||||
sshd:x:33:33:SSH daemon:/var/lib/sshd:/bin/sh
|
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
|
||||||
@@ -22,4 +22,6 @@ alias ipl='ip link' # show links
|
|||||||
alias ll='ls -lh' # show list files with information
|
alias ll='ls -lh' # show list files with information
|
||||||
alias la='ls -a'
|
alias la='ls -a'
|
||||||
alias l='ls -alh'
|
alias l='ls -alh'
|
||||||
|
alias df='df -h'
|
||||||
|
alias free='free -h'
|
||||||
#-----------
|
#-----------
|
||||||
|
|||||||
Executable
+11
@@ -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
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
notify "Starting ftpd"
|
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"
|
check $? "start ftpd"
|
||||||
echo $(pgrep tcpsvd) > /var/run/ftpd.pid
|
echo $(pgrep tcpsvd) > /var/run/ftpd.pid
|
||||||
return $?
|
return $?
|
||||||
|
|||||||
@@ -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 $?
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
#------------------------------------
|
#------------------------------------
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
otify "Starting httpd"
|
notify "Starting httpd"
|
||||||
/usr/bin/httpd -h /srv/www
|
/usr/bin/httpd -h /srv/www
|
||||||
check $? "start httpd"
|
check $? "start httpd"
|
||||||
echo $(pgrep httpd) > /var/run/httpd.pid
|
echo $(pgrep httpd) > /var/run/httpd.pid
|
||||||
|
|||||||
+2
-1
@@ -14,4 +14,5 @@
|
|||||||
14httpd
|
14httpd
|
||||||
15nginx
|
15nginx
|
||||||
16openrouterinit
|
16openrouterinit
|
||||||
17dropbear
|
17dropbear
|
||||||
|
18gitea
|
||||||
Regular → Executable
Reference in New Issue
Block a user