mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-13 17:01:02 +00:00
populate
This commit is contained in:
1 parent
df97341950
commit
76952a692c
6 files changed
+166
No files matched your search
Executable
+48
@@ -0,0 +1,48 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Beregn afhængigheder mellem moduler, opret modules.dep og load moduler fra /etc/modules.
|
||||
|
||||
. /etc/init.d/rcS-helper
|
||||
|
||||
start() {
|
||||
# This will work when busysbox is configured with MODPROBE_SMALL
|
||||
modprobe depmod-dummy 2>/dev/null
|
||||
|
||||
# Loop over every line in /etc/modules.
|
||||
dmesg -n 5
|
||||
echo -n 'Loading modules: '
|
||||
(cat /etc/modules; echo) | # The echo make sure there is a LF at the end.
|
||||
while read module args; do
|
||||
case "$module" in
|
||||
\#*|"") continue ;;
|
||||
esac
|
||||
echo -n "$module: "
|
||||
modprobe $module $args
|
||||
done
|
||||
echo ''
|
||||
dmesg -n 7
|
||||
}
|
||||
|
||||
stop() {
|
||||
:
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
Reference in new issue
Block a user