Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9cef4d1

Browse files
committed
Kernel modules support
Build script addedSSH client/server addednano editor addedudev fixed
1 parent41bfbb8 commit9cef4d1

File tree

139 files changed

+3406
-1696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+3406
-1696
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ linux-firmware/
6060
/linux-4.16-rc1/*
6161
/linux-4.16-rc1/*.*
6262
!/linux-4.16-rc1/.config
63+
/OneFileLinux.efi

‎alpine-minirootfs/bin/rc-status‎

0 Bytes
Binary file not shown.

‎alpine-minirootfs/etc/apk/world‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ alpine-keys
44
apk-tools
55
busybox
66
busybox-initscripts
7+
dropbear
8+
dropbear-ssh
79
efibootmgr
810
libc-utils
11+
nano
912
openrc
13+
parted
1014
reaver-wps-fork-t6x
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# /etc/conf.d/dropbear: config file for /etc/init.d/dropbear
2+
3+
# see `dropbear -h` for more information
4+
# -w disables root logins
5+
# -p # changes the port number to listen on
6+
DROPBEAR_OPTS=""
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
# enable loadable module support when running from RAM
2-
# when unionfs support is available in the kernel
3-
unionfs_size="32M"
1+
# Enable loadable module support when running from RAM
2+
# when OverlayFS support is available in the kernel.
3+
# 0 means default tmpfs size (50% of physical RAM).
4+
# for more information please see kernel documention at:
5+
# https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt
6+
overlay_size=0
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/sbin/openrc-run
2+
# Copyright 1999-2004 Gentoo Foundation
3+
# Distributed under the terms of the GNU General Public License v2
4+
# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbear/files/dropbear.init.d,v 1.2 2004/07/14 23:57:35 agriffis Exp $
5+
6+
depend() {
7+
use logger dns
8+
need net
9+
after firewall
10+
}
11+
12+
check_config() {
13+
if [!-e /etc/dropbear/ ];then
14+
mkdir /etc/dropbear/
15+
fi
16+
if [!-e /etc/dropbear/dropbear_dss_host_key ];then
17+
einfo"Generating DSS-Hostkey..."
18+
/usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
19+
fi
20+
if [!-e /etc/dropbear/dropbear_rsa_host_key ];then
21+
einfo"Generating RSA-Hostkey..."
22+
/usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
23+
fi
24+
if [!-e /etc/dropbear/dropbear_ecdsa_host_key ];then
25+
einfo"Generating ECDSA-Hostkey..."
26+
/usr/bin/dropbearkey -t ecdsa -f /etc/dropbear/dropbear_ecdsa_host_key
27+
fi
28+
}
29+
30+
start() {
31+
check_config||return 1
32+
ebegin"Starting dropbear"
33+
/usr/sbin/dropbear${DROPBEAR_OPTS}
34+
eend$?
35+
}
36+
37+
stop() {
38+
ebegin"Stopping dropbear"
39+
start-stop-daemon --stop --pidfile /var/run/dropbear.pid
40+
eend$?
41+
}

‎alpine-minirootfs/etc/init.d/modloop‎

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ start() {
5353
mkdir -p /.modloop /lib
5454
case"$KOPT_modloop"in
5555
http://*|https://*|ftp://*)
56-
wget -P"$modloop_dldir""$KOPT_modloop" \
57-
&&modloop=$modloop_dldir/$(basename$KOPT_modloop)
56+
modloop=$modloop_dldir/${KOPT_modloop##*/}
57+
[!-f"$modloop" ]&&wget -P"$modloop_dldir""$KOPT_modloop"
5858
;;
5959
*)
6060
fordirin$(mountdirs);do
@@ -86,12 +86,17 @@ start() {
8686
fi
8787

8888
#use overlayfs if available and configured
89-
if grep -q -w"overlay$" /proc/filesystems&& [-n"$unionfs_size" ];then
89+
if grep -q -w"overlay$" /proc/filesystems&& [!-z${unionfs_size+x} ];then
90+
ewarn"Use of unionfs_size is deprecated use overlay_size instead"
91+
overlay_size="$unionfs_size"
92+
fi
93+
if grep -q -w"overlay$" /proc/filesystems&& [-n"$overlay_size" ];then
9094
ebegin"OverlayFS detected, mounting modloop rw"
91-
mkdir -p /.modunisonfs /lib/modules
92-
mount -t tmpfs -o size="$unionfs_size" tmpfs /.modunisonfs
93-
mkdir -p /.modunisonfs/modules /.modunisonfs/work
94-
mount -t overlay -o upperdir=/.modunisonfs/modules,lowerdir=/.modloop/modules,workdir=/.modunisonfs/work overlay /lib/modules
95+
["$overlay_size"!= 0 ]&& mount_ops="-o size=$overlay_size"
96+
mkdir -p /.modoverlayfs /lib/modules
97+
mount -t tmpfs$mount_ops tmpfs /.modoverlayfs
98+
mkdir -p /.modoverlayfs/modules /.modoverlayfs/work
99+
mount -t overlay -o upperdir=/.modoverlayfs/modules,lowerdir=/.modloop/modules,workdir=/.modoverlayfs/work overlay /lib/modules
95100
eend$?||return 1
96101
else
97102
rm -rf /lib/modules&& ln -sf /.modloop/modules /lib/
@@ -110,15 +115,13 @@ start() {
110115
}
111116

112117
stop() {
113-
local rc=0
114-
if mountinfo --quiet /.modunisonfs/modules&& mountinfo --quiet /lib/modules;then
115-
umount /lib/modules
116-
umount /.modunisonfs/modules
117-
fi
118-
if mountinfo --quiet /.modloop;then
119-
ebegin"Unmounting /.modloop"
120-
umount -d /.modloop
121-
eend$?||return 1
122-
fi
118+
local ret=0
119+
local mnt;formntin /lib/modules /.modoverlayfs /.modloop;do
120+
if mountinfo --quiet"$mnt";then
121+
ebegin"Unmounting$mnt"
122+
umount -d"$mnt"|| ret=1
123+
fi
124+
done
125+
eend$ret||return 1
123126
}
124127

‎alpine-minirootfs/etc/inittab‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
::wait:/sbin/openrc default
66

77
# Set up a couple of getty's
8-
tty1::respawn:/sbin/getty 38400 tty1
9-
tty2::respawn:/sbin/getty 38400 tty2
8+
tty1::respawn:/sbin/getty-l /bin/ash38400 tty1
9+
tty2::respawn:/sbin/getty-l /bin/ash38400 tty2
1010
tty3::respawn:/sbin/getty 38400 tty3
1111
tty4::respawn:/sbin/getty 38400 tty4
1212
tty5::respawn:/sbin/getty 38400 tty5

‎alpine-minirootfs/etc/issue‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1-
Welcome to Alpine Linux 3.7
2-
Kernel \r on an \m (\l)
1+
2+
____________
3+
/|------------|
4+
/_| .---. |
5+
| / \\ |
6+
| \\.6-6./ |
7+
| /`\\_/`\\ |
8+
| // _ \\\\ |
9+
| | \\ / | |
10+
| /`\\_`> <_/`\\ |
11+
| \\__/'---'\\__/ |
12+
|_______________|
13+
14+
OneFileLinux.efi v0.2-beta
15+
316

‎alpine-minirootfs/etc/motd‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
Welcome to Alpine!
2-
3-
The Alpine Wiki contains a large amount of how-to guides and general
4-
information about administrating Alpine systems.
5-
See <http://wiki.alpinelinux.org>.
6-
7-
You can setup the system with the command: setup-alpine
8-
9-
You may change this message by editing /etc/motd.
101

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp