diff --git a/Makefile b/Makefile index ad6c968a..79063977 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ endef all: kernel-axe-modules kernel .PHONY: release -release: kernel-axe-modules out/idl4k.scr out/idl4k.recovery +release: kernel-axe-modules out/idl4k.scr out/idl4k.cfgreset out/idl4k.recovery -ls -la out .PHONY: dist @@ -146,6 +146,11 @@ fs-list: # uboot # +out/idl4k.cfgreset: patches/uboot-cfgreset.script + $(TOOLPATH)/mkimage -T script -C none \ + -n 'Reset satip-axe fw configuration' \ + -d patches/uboot-cfgreset.script out/idl4k.cfgreset + out/idl4k.recovery: patches/uboot-recovery.script $(TOOLPATH)/mkimage -T script -C none \ -n 'Restore original idl4k fw' \ diff --git a/dist/README b/dist/README index 2db1fb6f..668fffc9 100644 --- a/dist/README +++ b/dist/README @@ -98,6 +98,13 @@ Misc: - full tuner reset - "axe-debug reset" +Recovery from the wrong configuration: + + - copy idl4k.cfgreset file as idl4k.scr file to the root directory on the USB stick + - plug the USB stick to the upper USB port in box + - turn on the box + - the old configuration file is moved to /etc/sysconfig/config.old + Recovery of the original firmware: - copy idl4k.recovery file as idl4k.scr file to the root directory on the USB stick @@ -154,6 +161,15 @@ Bugs: History: + -10 - + - replaced stapi / frontend / demuxer drivers with latest from Inverto + - updated kernel USB stack, fixed ftdi_sio kernel oops (mouse readers) + - updated minisatip to new demuxts (reduce CPU usage) + - fixed -b option for minisatip + - updated oscamd to 10937 + - fixed /etc/mdev.conf to mount USB sticks without partitions + - added idl4k.cfgreset script to reset wrong config + satip-axe-201505242057-9 - Sun May 24 2015 - added http://boxip:8080/axe-status.txt status page (shell parseable) - fixed ntpd start diff --git a/fs-add/etc/init.d/rcS b/fs-add/etc/init.d/rcS index e8952edf..16bff771 100755 --- a/fs-add/etc/init.d/rcS +++ b/fs-add/etc/init.d/rcS @@ -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 diff --git a/fs-add/etc/mdev.conf b/fs-add/etc/mdev.conf index a829aca9..0c8c353c 100644 --- a/fs-add/etc/mdev.conf +++ b/fs-add/etc/mdev.conf @@ -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