blob: 27aa3d77759e55ffc5e00177f3a608370e002f6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
while getopts "hn" opt; do
case "$opt" in
h) echo "remove mdev and enable udev from boot"
echo "usage: $0 [-n]"
echo "options:"
echo " -n Do not start udev"
;;
n) dryrun=1
;;
esac
done
rm -f /etc/runlevels/sysinit/hwdrivers /etc/runlevels/sysinit/mdev
for i in udev-trigger udev udev-postmount; do
if ! [ -e /etc/runlevels/sysinit/$i ]; then
ln -s /etc/init.d/$i /etc/runlevels/sysinit/$i
fi
if [ -z "$dryrun" ] && ! rc-service --quiet udev status; then
rc-service udev start
fi
done
|