summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-misc.sh
AgeCommit message (Collapse)Author
2011-01-01make sure all {pre,post}configure_target functions use good return codesDieter Plaetinck
target_configure_initial_keymap_font and target_configure_network would falsely return >0 in some occasions, causing unneeded warnings.
2010-12-31Inform user more in detail which pre/post-configure step went wrongDieter Plaetinck
* Move all pre/post-configure logic to separate functions (initcpio config, time setting, mirrorlist) * other steps will continue to be run, even if previous one(s) failed * at the end of the pre/post-configure step you will be warned which steps failed, if needed.
2010-12-28Refactor network config generation codeDieter Plaetinck
Make interactive_runtime_network() and target_configure_network() able to be run multiple times with different settings, and make it clear what's going on in target_configure_network().
2010-12-09correctly return wait_for exitcode, and use it to die_error if neededDieter Plaetinck
2010-12-09make run_controlled actually return the right exitcodeDieter Plaetinck
this fixed exit code feedback for package installation and mkinitcpio
2010-12-09properly pass on $BACKGROUND_EXIT so that $CONTROLLED_EXIT is setDieter Plaetinck
2010-12-09lift no-hyphen restriction on run_{controlled,background} identifiersDieter Plaetinck
Since 44bc9f54734d9280c71959e56189044141bc1640 this is no longer an issue
2010-12-09fix correct exitcode variables in run_{controlled,background} commandsDieter Plaetinck
Since 44bc9f54734d9280c71959e56189044141bc1640, the variablenames for the exit code was still incorrect in the debug logmessage and a doc header Also added a debug line for run_controlled
2010-04-16change infofy calls to inform, because libui-sh changed function nameDieter Plaetinck
2010-04-05make sure to create the parent directories for the logfiles in lib-misc ↵Dieter Plaetinck
run_background and run_controlled. this caused breakage now since libui logs to another directory
2010-04-04simplify check_is_in functionDieter Plaetinck
2009-11-11variable assigment syntax errorPavel Hofman
2009-08-01make run background/controlled exitcodes more robust & bugfreeDieter Plaetinck
2009-06-29Modified timesetting procedure againGerhard Brauer
With our current code we get problems when the user want to set datetime manually in our dialog. Revisiting last changes i see: it's a bad thing to force any timesetting based on a *selected* timezone in an still UTC environment. So the easiest way (and i hope the last change on this!) is: a) user selected a timezone b) we set this timezonefile to /etc/localtime c) Now we ask: is your hwclock on UTC or localtime? c) UTC BIOSclock user now have both correct system and hw time. d) For localtime users we must re-read the hwclock into our new timezone, cause copy'ing above timezone file has recalculated the systemtime to a false time. I've tested these commit on my PC, both with hwclock on UTC and localtime, also with manual setting and via ntp(date) in the aif dialog. Signed-off-by: Gerhard Brauer <gerbra@archlinux.de>
2009-06-28fixes for font/keymap substitutionsDieter Plaetinck
2009-06-25Fixed timesetting for hwclock localtime usersGerhard Brauer
When we set system time from the BIOS clock via hwclock we must honor the timezone the user previous selected during interactive_time(). After boot we are in an UTC environment. If we now - for localtime users - parse hwclcock value to systemtime, then we get later a false systemtime when copying the TZ file to /etc/localtime. Changing /etc/localtime always recalculate the time according to the timezone. Signed-off-by: Gerhard Brauer <gerbra@archlinux.de>
2009-03-30fix hwclock calls for systohc and hctosys, fix /etc/localtime, show nice ↵Dieter Plaetinck
dialog with 'ok', 'manual date setting' and ntp using
2009-03-30do hwclock (only) at the right time, optimize hwclock code, make UTC default ↵Dieter Plaetinck
(fixes FS#13752 - Make hwclock in UTC a "good idea"
2009-03-17slight refactoring of how to run/monitor a program. i quite broke it thoughDieter Plaetinck
2009-03-13fix for kill dialogs forked process from the follow_progress call in wait_forDieter Plaetinck
2009-03-12support for storing the pid of background wrapper processes + support for ↵Dieter Plaetinck
non-blocking following of text files (eg tail --pid)
2009-03-12various fixes re:keymap/font. + auto updating rc.conf in all proceduresDieter Plaetinck
2009-03-10fix segfault caused by loopDieter Plaetinck
2009-02-28fix for bash read: not a valid identifier, and hence, got rid of the pacman ↵Dieter Plaetinck
install pkg workaround (finally!!)
2009-02-28debug fix in check_is_inDieter Plaetinck
2009-02-28check_is_in fixes.. and this time i mean it.. i think. hopefully. + test ↵Dieter Plaetinck
script for check_is_in
2009-02-28support for debug categoriesDieter Plaetinck
2009-02-25adding refactored/reordered date/time setting logic into aif. based on ↵Dieter Plaetinck
tpowa's tz script. this also means an ncurses implementation of timezone selection
2009-02-22since we use /tmp now, no more need to hide files. some categorizing ↵Dieter Plaetinck
(tagging) of files is useful though
2009-02-14tried to make aif FHS/hier compliant + updated howto/readmeDieter Plaetinck
2008-12-31runfile should be hiddenDieter Plaetinck
2008-12-20fix for incorrect shebangsDieter Plaetinck
2008-12-12cleanup stale files on start and stop + long overdue introduction of ↵Dieter Plaetinck
$RUNTIME_DIR
2008-12-12check_is_in fixDieter Plaetinck
2008-12-12implementation if iterative, dependency-resolving underlying volume ↵Dieter Plaetinck
filesystem creater
2008-12-12todo updatesDieter Plaetinck
2008-11-16updated HOWTO for install using packages, got rid of patch-install-cd script ↵Dieter Plaetinck
+ renamed fifa into aif everywhere
2008-11-13fixes to run_backgroundDieter Plaetinck
2008-11-13dont overwrite previous logfile, rather appendDieter Plaetinck
2008-11-13small stuffDieter Plaetinck
2008-11-13debugging info in run_background + better logfile location for pacmanDieter Plaetinck
2008-11-12typo fix and todo updates (important one!)Dieter Plaetinck
2008-11-12fix regression after wait_for running process refactoringDieter Plaetinck
2008-11-12cleaner handling of exit code and running state in run_background + ↵Dieter Plaetinck
installpkg exit code fix
2008-11-12mehDieter Plaetinck
2008-11-032 bugfixesDieter Plaetinck
2008-11-02file hierarchy overhaul. now a structure that makes more sense: user and ↵Dieter Plaetinck
core separated. we now differentiate between procedures and libraries - no more "profiles" - + some bug fixed + probably quite a few introduced + runtime directory + separated my own stuff more