fix mdev.conf, add idl4k.cfgreset script

This commit is contained in:
Jaroslav Kysela
2015-08-04 19:42:35 +02:00
parent 8be34f5ace
commit 1e7d16c213
4 changed files with 31 additions and 10 deletions

View File

@@ -1,10 +1,11 @@
#!/bin/busybox sh
busybox mount -t proc proc /proc
AXECFG=$(busybox awk 'match($0, /axecfg=[^ ]*/) {print substr($0,RSTART,RLENGTH)}' /proc/cmdline)
busybox echo "Welcome to SATIP-AXE Linux! $AXECFG"
AXECFG=${AXECFG:7:255}
busybox mount -t proc proc /proc
# remount root filesystem in rw mode
busybox mount -o remount,rw /
# Create all symbolic links.
@@ -51,13 +52,12 @@ if test "$AXECFG" = "reset"; then
mv /etc/sysconfig/config /etc/sysconfig/config.old 2> /dev/null
mv /etc/sysconfig/passwd.old /etc/sysconfig/passwd.old1 2> /dev/null
mv /etc/sysconfig/passwd /etc/sysconfig/passwd.old 2> /dev/null
else
if ! test -r /etc/sysconfig/config ; then
cp /etc/config.default /etc/sysconfig/config
fi
if test -r /etc/sysconfig/passwd ; then
cp /etc/sysconfig/passwd /etc/passwd
fi
fi
if ! test -r /etc/sysconfig/config ; then
cp /etc/config.default /etc/sysconfig/config
fi
if test -r /etc/sysconfig/passwd ; then
cp /etc/sysconfig/passwd /etc/passwd
fi
# load config

View File

@@ -1,2 +1,2 @@
-sd[a-h][0-9]{1,2} 0:0 660 */sbin/sd-hotplug.sh
-sd[a-h].* 0:0 660 */sbin/sd-hotplug.sh
-ttyUSB[0-9]* 0:0 660 */sbin/tty-hotplug.sh