Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
651
Issues
651
List
Boards
Labels
Service Desk
Milestones
Merge Requests
215
Merge Requests
215
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
3276e925
Commit
3276e925
authored
Apr 22, 2010
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/busybox-initscripts: minor mdev fixes
got hints from solar
parent
6645fef3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
main/busybox-initscripts/APKBUILD
main/busybox-initscripts/APKBUILD
+3
-3
main/busybox-initscripts/mdev.conf
main/busybox-initscripts/mdev.conf
+4
-1
main/busybox-initscripts/usbdev
main/busybox-initscripts/usbdev
+4
-4
No files found.
main/busybox-initscripts/APKBUILD
View file @
3276e925
...
...
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
busybox-initscripts
pkgver
=
2.0
pkgrel
=
1
1
pkgrel
=
1
2
pkgdesc
=
"Init scripts for busybox daemons"
url
=
"http://git.alpinelinux.org/cgit/aports/tree/core/busybox-initscripts"
license
=
"GPL-2"
...
...
@@ -55,9 +55,9 @@ b5b23dd06cea120bd8d850b54bca0b59 syslog.initd
22adbf155ffc4595206ded6daad07812 rdate.confd
77fb31a75511247bf4e3430565a276bc syslog.confd
0bb55dde32f5e119111fa4938daaef3d watchdog.confd
c
3eb08c577384154fdf748f1db06f8db
mdev.conf
c
514213ed7e56c64c44be3285d34a297
mdev.conf
ad1556961294e4aa2abca6be52138b7c dvbdev
5c8725b4cbdeda23b00f08124a0d20bf ide_links
1acfd58dfd1cf324c90ca3a3be519510
usbdev
c422992ca5bfdfabdbba1f1532bc1358
usbdev
30b0c85956b6701caf55309a17e537f6 usbdisk_link
826d85313ca7a4a0205d63bd58b7d01f xvd_links"
main/busybox-initscripts/mdev.conf
View file @
3276e925
...
...
@@ -17,7 +17,10 @@ urandom root:root 0444
hwrandom
root
:
root
0660
# console does already exist; therefore ownership has to be changed with command
console
root
:
tty
0600
@
chmod
600
$
MDEV
&&
mkdir
-
p
vc
&&
ln
-
sf
../$
MDEV
vc
/
0
#console root:tty 0600 @chmod 600 $MDEV && mkdir -p vc && ln -sf ../$MDEV vc/0
console
root
:
tty
0600
@
mkdir
-
pm
755
fd
&&
cd
fd
&&
for
x
in
0
1
2
3
;
do
ln
-
sf
/
proc
/
self
/
fd
/$
x
$
x
;
done
fd0
root
:
floppy
0660
kmem
root
:
root
0640
mem
root
:
root
0640
...
...
main/busybox-initscripts/usbdev
View file @
3276e925
...
...
@@ -15,13 +15,13 @@ add_zeros () {
# bus and device dirs in /sys
local
USB_PATH
=
$(
echo
$MDEV
|
sed
-e
's/usbdev\([0-9]\).[0-9]/usb\1/'
)
USB_PATH
=
$(
echo
$MDEV
|
sed
-e
's/usbdev\([0-9]\).[0-9]/usb\1/'
)
USB_PATH
=
$(
find /sys/devices
-type
d
-name
"
$USB_PATH
"
)
local
USB_DEV_DIR
=
$(
echo
$MDEV
|
sed
-e
's/usbdev\([0-9]\).\([0-9]\)/\1-\2/'
)
USB_DEV_DIR
=
$(
echo
$MDEV
|
sed
-e
's/usbdev\([0-9]\).\([0-9]\)/\1-\2/'
)
# dir names in /dev
local
BUS
=
$(
add_zeros
$(
echo
$MDEV
|
sed
-e
's/^usbdev\([0-9]\).[0-9]/\1/'
))
local
USB_DEV
=
$(
add_zeros
$(
echo
$MDEV
|
sed
-e
's/^usbdev[0-9].\([0-9]\)/\1/'
))
BUS
=
$(
add_zeros
$(
echo
$MDEV
|
sed
-e
's/^usbdev\([0-9]\).[0-9]/\1/'
))
USB_DEV
=
$(
add_zeros
$(
echo
$MDEV
|
sed
-e
's/^usbdev[0-9].\([0-9]\)/\1/'
))
# try to load the proper driver for usb devices
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment