-
Senior Member
registered user
Here's the stanza beginning at line 734 of the init of minirt.gz
...with two added lines defining a new cheatcode "restore":
# Check for updates on-disk, install them if necessary. ############## line 734
if checkbootparam "restore" then ####################### first added line
ls /mnt-system/KNOPPIX/update*.zip /mnt-system/KNOPPIX/update*.tar.gz\
/mnt-system/KNOPPIX/update*.taz 2>/dev/null | while read update; do
if [ -r "$update" ]; then
message -e "\r${CRE}${GREEN}${UPDATING} ${YELLOW}$update${NORMAL}"
case "$update" in
*.zip) ( cd / ; unzip -o "$update" >/dev/null 2>&1 ) ;;
*.tar.gz|*.taz) ( cd / ; tar -zxf "$update" >/dev/null 2>&1 ) ;;
esac
fi
done
fi ########################################## second added line
With this modification to initrd.gz, we could change the backup routine
to save update.tar.gz to /mnt-system/KNOPPIX/, and leave it there.
It would be activated only by the cheatcode "restore" and the update
could remain in place and not require moving it around.
Last edited by utu; 06-25-2011 at 08:48 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99
IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD
$349.99
IBM Power 740 8205-E6D Express 8-SFF Power7+ 4.2GHz CPU 64GB RAM *No HDD* Server
$239.99
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$319.99
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$84.50
IBM Server eServer | IBMR1000 | UPS 1000VA 700W W/New Batteries
$115.00
IBM SYSTEM x3200 M2 Server - HDD wiped, No OS
$75.00
IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES
$26.97
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
IBM QRadar xx29 Server 4412Q2A
$293.99