**** BEGIN LOGGING AT Thu Feb 02 02:59:58 2012 Feb 02 04:55:09 /? Feb 02 06:32:05 ?? Feb 02 06:35:06 ~weather EDDN Feb 02 06:35:09 Nuernberg, Germany; (EDDN) 49-30N 011-03E 318M; last updated: 2012.02.02 0620 UTC; Dew Point: -4 F (-20 C); Pressure (altimeter): 30.27 in. Hg (1025 hPa); Relative Humidity: 51%; Temperature: 10 F (-12 C); Visibility: greater than 7 mile(s); Wind: from the ENE (060 degrees) at 7 MPH (6 KT); Windchill: 0 F (-18 C) Feb 02 06:35:38 BRRRRRRR Feb 02 06:46:46 RST38h: mgedmin: http://www.openwall.com/lists/oss-security/2012/02/01/4 Feb 02 06:46:58 (xchat) Feb 02 06:47:11 bbl Feb 02 08:53:27 DocScrutinizer: look at LKPR :) Feb 02 10:47:24 cool, i didn't know the Spark ran Mer Feb 02 11:14:07 hey Feb 02 11:14:34 is this channel still primarily n900 related? Feb 02 11:18:02 hello Feb 02 11:18:53 how can I find a list of supported HID devices by H-E-N Feb 02 11:19:59 n900 usb host mode Feb 02 11:23:10 http://www.theregister.co.uk/2012/02/02/windows_phone_get_going/ Feb 02 11:30:20 edheldil: what's (on) LKPR? Feb 02 11:33:16 http://www.reghardware.com/2012/02/02/concept_bamboo_smartphone_adzero_in_production/ <-- hmm Feb 02 12:24:57 aaaaaaaaaaaaaaaaaaaaaaaaatprima toch Feb 02 12:25:00 er Feb 02 12:25:01 lag. Feb 02 12:25:07 * Wizzup runs Feb 02 12:33:33 Wizzup: wtf was that? Feb 02 12:34:44 merlin1991: Well, lag. I obviously wanted to send it to another channel Feb 02 12:35:15 I think I was pressing super + a instead of alt + a Feb 02 12:35:27 I was in XOFF mode, so I didn't see what I was typing due to extremely slow connection Feb 02 12:35:38 ah irssi :D Feb 02 12:35:41 When I used XON again, I saw I had send it to the wrong channel Feb 02 12:35:41 yes Feb 02 12:36:30 quassel ftw ;) Feb 02 12:36:55 Well, I'm on windows atm due to uni machines only having windows in this room Feb 02 12:36:58 so putty works Feb 02 12:40:54 quassel works on win too ;) Feb 02 12:41:28 DocScrutinizer: even more degrees below zero than EDDN. But never mind Feb 02 15:19:22 is the ssh server down? why I tried to upload via scp I get a Connect to host drop.maemo.org port 22 : Connection timed out Feb 02 15:22:09 and I get a click in the contact view, Feb 02 15:22:17 erm Feb 02 15:22:43 I get a "scp returned a nonzero exit code" almost immediatly when I use dput Feb 02 15:23:12 it's my first upload so maybe I did something wrong Feb 02 16:37:19 Hello Feb 02 16:37:34 is it possible to connect 2 bluetooth headsets to the n900 at once? Feb 02 16:37:44 Then route audio from one headset to the other? Feb 02 16:39:42 well, there's definetely enough bandwidth to do so, for one way Feb 02 16:39:46 not sure about two-way though Feb 02 17:09:20 kerio: can the n900 do a2dp? (as the client not host) Feb 02 17:09:52 timeless: well, it has bluetooth :) Feb 02 17:10:55 yeah.. Feb 02 17:15:57 timeless: so... write a program to do so? :D Feb 02 17:22:51 timeless: not sure if you can do something with pulseaudio to do that automagically Feb 02 17:22:52 probably not Feb 02 17:23:43 is there enough bandwidth to transmit a2dp-like stereo *and* a mono mic through bluetooth? Feb 02 17:29:15 kerio, i believe so, i can do it with my mw600, bluetooth headset Feb 02 17:29:25 http://www.sonyericsson.com/cws/products/accessories/overview/mw600?lc=en&cc=gb Feb 02 17:29:32 is that a particular sony thing? Feb 02 17:29:46 i meant at the same time, mind you Feb 02 17:29:46 no, it is bluetooth Feb 02 17:30:52 like listening to music and talking at same time? Feb 02 17:30:57 yeah Feb 02 17:31:21 my music app auto pauses when incomming call Feb 02 17:31:34 dont know Feb 02 17:31:44 tank-man: well, that's not at the same time, is it Feb 02 17:31:54 it just switches from a2dp to hsp or hfp Feb 02 17:32:37 hey there's a linux app for this keychain "photoframe" that turns it into an external display Feb 02 17:33:03 I was wondering if it'd compile with the n900 kernel and work with usb Feb 02 17:34:11 hello... i've managed to rip off the usb socket along with traces, does anyone have any idea if there are any other points on the board where i can access usb traces?... Feb 02 17:34:44 yes. Feb 02 17:35:05 to his question or mine Feb 02 17:35:05 There is a page on it - perhaps on the wiki - maybe TMO, with solderpoints Feb 02 17:35:18 http://spritesmods.com/?art=picframe Feb 02 17:35:20 Unfortunately, I'm aFK at the moment Feb 02 17:35:33 kerio, yea, i cant Feb 02 17:35:34 any chance this could work? Feb 02 17:35:39 SpeedEvil: thank you, i'll google and try to find it Feb 02 17:35:49 tank-man: it's not possible with any consumer hardware, i think Feb 02 17:35:55 it so sad to have a perfectly working n900 without the ability to charge the battery... Feb 02 17:36:03 i was talking about the possibility to do so Feb 02 17:36:14 dRbiG: buy an external battery charger, in the meantime Feb 02 17:36:22 dRbiG there are external... what he said Feb 02 17:36:34 like 10 bucks max Feb 02 17:36:46 try not to use them for a long period though Feb 02 17:37:05 they're chinese crap, they'll seriously eat your battery Feb 02 17:37:36 * kerio says, while looking at his crappy chinese battery charger he's been using for more than a year and a half now Feb 02 17:37:41 mine doesn't quite charge the battery full but I got it as an emergency thing and it has USB ports Feb 02 17:38:30 my 2nd n900 should come in the mail tomorrow Feb 02 17:38:39 what's something cool to do with 2 of them Feb 02 17:39:37 (apart from locking one in a moisture proof place for the possibility of the first one breaking badly) Feb 02 17:39:53 Gear_: you could send it to me! Feb 02 17:40:09 I'd rather use them as video walkie talkies using gstreamer Feb 02 17:40:32 or just dedicate one to an internet tablet and the new one as my actual phone Feb 02 17:41:38 for something that's got pretty awesome hardware there is ONE "music production" app, and it's a port of milkytracker from the fricken amiga Feb 02 17:42:34 unless there are some repositories I'm missing out on, I can't find anything audio/music related Feb 02 17:42:52 Gear_: PA sucks enough when you're just playing sound you already have Feb 02 17:42:58 and you want to actually *make* more? Feb 02 17:43:21 yeah I'm very sure. I've been doing it on a nintendo DS so far Feb 02 17:43:44 (another tracker program) Feb 02 17:44:37 there's some live stuff and I've made some hardware for the ds but there's a goddamn appaling lack of anything audio related for the n900 Feb 02 17:44:43 something I thought people would be all over Feb 02 17:46:13 Does anyone know something about issues using JoikuSpot and encrypted WLAN? Feb 02 18:56:44 how do you modify who is the maintainer of a package? Feb 02 18:58:37 in Debian, upload with a new Maintainer: field in debian/control Feb 02 19:19:20 Hi there, Maemo. Feb 02 19:20:16 Little question from developing noob - how to easily make .sh script reading certain values from config file (user-editable) Feb 02 19:21:08 define some values as 'value=$cat config_file | grep blabla', or what? Feb 02 19:22:14 the thing is, that I've prepared some scripts for next TrueCrypt release - automating "switching" to encrypted swap when needed, and going back to regular swap afterwards Feb 02 19:23:03 Now, I would like to allow users define their swap and encrypted partitions locations via easy editable text file, instead of pointing them to edit sctipt itself Feb 02 19:23:42 nooby question, I suppos, but any hints on 'proper' approach appreciated :) Feb 02 19:24:25 BTW, SpeedEvil, some time ago You've told me about certain ext4 value, desined to help in case of flash device. wide-something, related to our block writing Feb 02 19:24:40 Don't think I did Feb 02 19:24:41 I can't seem to find it, could You please tell me again how it was called? Feb 02 19:24:59 oh, sorry, it seems that my memory fades :/ Feb 02 19:33:54 hi Feb 02 19:34:18 is navicore still usable ? or they killed it ? Feb 02 19:37:07 Estel_: might have been ShadowJK Feb 02 19:40:24 is there a way to find the devices supported by H-E-N ? Feb 02 19:40:27 Estel_: hell-builtin "source" is what you are looking for I think. Feb 02 19:40:38 s/hell-builtin/shell-builtin Feb 02 19:46:02 DocScrutinizer, thanks, will help in log searchs, or I'll just ask him in case of failure Feb 02 19:46:13 NIN102, thanks, will google about this function Feb 02 19:48:36 NIN102, source seems to load file and execute commands from it Feb 02 19:48:49 and you can define your variables... Feb 02 19:48:54 how could it also parse config-like files, and get variables from it? Feb 02 19:49:19 foo=bar? Feb 02 19:49:22 yea, but config file should be user friendly. Of course, I can put blabla=$blabla1 there Feb 02 19:49:36 NIN102: nope Feb 02 19:49:37 well, doesn't sound bad Feb 02 19:49:37 and why not? Feb 02 19:49:58 DocScrutinizer, please continue? Feb 02 19:50:19 DocScrutinizer: why "nope"? Feb 02 19:50:29 IIRC it was sth along fs-driver parameters for ext4 on flash, like erasepage-width=2048 Feb 02 19:51:00 we were talking about config variables for shellscripts Feb 02 19:51:01 DocScrutinizer, thanks. It's about diferrent topic, yet still thanks :) Feb 02 19:51:46 ooh, I missed a topic jump Feb 02 19:52:05 We're multitasking a little ;) Feb 02 19:52:45 Gear_: list what? Feb 02 19:53:08 find devices supported by h-e-n? Feb 02 19:53:17 what do you mean? Feb 02 19:54:16 probably, he mean things, that we have modules/drivers for, or at least, linux have, and we can use them on Maemo ;) Feb 02 19:54:25 i.e. "let me google that for You" Feb 02 19:54:26 j #nbada Feb 02 19:55:27 so, Gear_ , the answer is "H-E-N" support every device, that is USB compatible - it can enumerate it. Further support is not related to HEN Feb 02 19:56:29 exactly Feb 02 19:57:06 except some gadgets that need isochronous mode on USB, maemo usb kernel driver doesn't support that Feb 02 19:57:20 HEN had a kernel that came with it Feb 02 19:57:23 but not anymore Feb 02 19:57:33 so if a device needs a driver what do I do? Feb 02 19:57:49 well, we joined the hostmode patches to powerkernel Feb 02 19:58:14 awesome Feb 02 19:58:36 and if you need a driver that'S not readily available for powerkernel, you build it - for powerkernel :-) Feb 02 19:58:49 I don't know how to do that. Feb 02 19:59:15 DocScrutinizer, for sake of curiosity, what kind of devices need isochronous mode on USB? Feb 02 19:59:27 gadgets, I mean. USB gadgets. Feb 02 19:59:39 then you drop by here and ask if some nice soul would do that for you, e.g pali or freemangordon or MohammadAG or ... Feb 02 19:59:53 Estel_: some webcams Feb 02 20:00:04 some low latency audiocards Feb 02 20:00:49 I'm not too sure about particular devices that use isochronous mode Feb 02 20:01:23 I see. quasi-realtime, without ensuring that no data will be lost Feb 02 20:01:49 probably most will fall back to a more common (bulk?) mode when iso isn't available Feb 02 20:01:55 are game controllers east to get working Feb 02 20:01:57 where guaranteed data rate is more important than ensuring no data loss. Feb 02 20:01:58 Estel_: yep Feb 02 20:02:17 I'm wating for a host mode cable before I can actually try this Feb 02 20:02:48 Gear_: game controllers should be utterly easy to get working Feb 02 20:02:49 Gear_, I created my hostmode cable myself. Even incorporated twisted-pair and shielding/screening ;) Feb 02 20:03:26 I don't really have anything to cut up so I got a couple of host mode cables off ebay Feb 02 20:03:36 not recommended - though GOD I've seen adapters soooo bad Feb 02 20:04:20 this friggin thing that swapped GND and VBUS :-o Feb 02 20:04:24 DocScrutinizer, my adapter went bad, so I just dissasembled it (it was assembled "once for all", so ĩ've torn it apart" is more true", then used only ports Feb 02 20:04:31 lol Feb 02 20:05:12 the n8X0 cables should work though? Feb 02 20:05:15 well, most things that You can buy, even when not screwed, doesn't have port case connected to ground Feb 02 20:05:37 so, there is only screening at best, not shielding Feb 02 20:05:41 the guy who purchased that one was actually lucky he didn't fry a single of his gadgets he tried to get working on N900 Feb 02 20:06:07 like the guy, who tried to use wire-only USB o LAN adapter? Feb 02 20:06:18 as LAN-to-USB gadget? Feb 02 20:06:42 ouch, another nice one, YEAH Feb 02 20:06:44 he was lucky, that he didn't connected it to line with 50V, or so Feb 02 20:06:52 yep Feb 02 20:07:13 "no boy, this is NOT an 'adapter'!" Feb 02 20:07:43 blame english language with many meanings for single world. Actually, it *adapts* plugs ;) Feb 02 20:08:00 well, I have to say RJ45 are used for a mindboggling lot of usecases Feb 02 20:08:14 * DocScrutinizer glares at his flashing mount Feb 02 20:08:22 where are you guys from? Feb 02 20:08:22 hah. Feb 02 20:08:40 I'm bastard operator from hell Feb 02 20:08:43 I'm not dating on Maemo IRC, sorry. Feb 02 20:09:16 why not? the idea is kinda funny (assuming there girls in here :P) Feb 02 20:09:27 actually this feels like a special hell right now: Feb 02 20:09:30 ~weather EDDN Feb 02 20:09:33 Nuernberg, Germany; (EDDN) 49-30N 011-03E 318M; last updated: 2012.02.02 1950 UTC; Dew Point: -2 F (-19 C); Pressure (altimeter): 30.36 in. Hg (1028 hPa); Relative Humidity: 47%; Temperature: 14 F (-10 C); Visibility: greater than 7 mile(s); Wind: from the NE (050 degrees) at 6 MPH (5 KT); Windchill: 5 F (-15 C) Feb 02 20:09:45 seriously though, Poland. May I aks why You ask? BTW, we're not so scarry, as it seems from last messags Feb 02 20:10:10 o f... infobot got weather? DocScrutinizer, You could tell me that instead of onjoin ;) Feb 02 20:10:30 is there any way to make it auto-show weather data when certain individual connects? Feb 02 20:10:33 Joking. Feb 02 20:10:50 ~weather Posen Feb 02 20:10:53 ; ; last updated: Feb 02 20:10:57 OMG I told estel about infobot weather, now the climate here will be fsckd forever ;-P Feb 02 20:11:00 thanks a lot... Feb 02 20:11:22 expect ice age ;) Feb 02 20:11:52 ~+help weather Feb 02 20:11:52 no help on weather. Use 'help' without arguments. Feb 02 20:12:02 WUT? Feb 02 20:12:26 I hate this router Feb 02 20:12:49 ~weather Poznań Feb 02 20:12:51 ; ; last updated: Feb 02 20:12:55 ~weather exds Feb 02 20:12:57 I can't find station code "EXDS" (see http://www.nws.noaa.gov/oso/site.shtml or http://www.nws.noaa.gov/tg/siteloc.shtml for ICAO locations codes). Feb 02 20:13:11 oh, thanks Feb 02 20:13:24 I asked because it seemed english wasn't your first language Feb 02 20:14:18 nah, I'm using an acquired accent on IRC, to fool users Feb 02 20:14:21 ;-) Feb 02 20:14:29 ~weather EPPO Feb 02 20:14:31 Poznan, Poland; (EPPO) 52-25N 016-50E 92M; last updated: 2012.02.02 2000 UTC; Dew Point: 0 F (-18 C); Pressure (altimeter): 30.56 in. Hg (1035 hPa); Relative Humidity: 71%; Temperature: 6 F (-14 C); Visibility: 2 mile(s); Weather: Mist; Wind: Variable at 2 MPH (2 KT) Feb 02 20:16:00 BTW, last few days I got troubles connecting to freenode. Seriously, I though that You've had something to do with it, DocScrutinizer ;) Feb 02 20:25:25 wtf Feb 02 20:25:49 according to the list we have like a lot of stations in austria, but not a single one in vienna Feb 02 20:26:11 fsckd localization Feb 02 20:26:18 list is in german and I didn't notice :P Feb 02 20:27:47 any in australia Feb 02 20:28:13 ~weather 11034 Feb 02 20:28:15 I can't find station code "11034" (see http://www.nws.noaa.gov/oso/site.shtml or http://www.nws.noaa.gov/tg/siteloc.shtml for ICAO locations codes). Feb 02 20:28:27 *fu infobot Feb 02 20:28:36 ~weather LOWW Feb 02 20:28:39 Wien / Schwechat-Flughafen, Austria; (LOWW) 48-07N 016-34E 190M; last updated: 2012.02.02 2020 UTC; Dew Point: 0 F (-18 C); Pressure (altimeter): 30.42 in. Hg (1030 hPa); Relative Humidity: 66%; Temperature: 8 F (-13 C); Visibility: greater than 7 mile(s); Wind: from the NNW (340 degrees) at 12 MPH (10 KT); Windchill: -7 F (-22 C) Feb 02 20:29:04 bah invalid data, too far away Feb 02 20:31:52 13c here Feb 02 20:32:07 but it's 0733 Feb 02 20:32:24 be 30's later Feb 02 20:37:14 http://www.linuxfordevices.com/c/a/News/Peek-Classic-Pronto-9-leftovers/?kc=rss Feb 02 20:38:22 * DocScrutinizer yawns and ponders booze until the freezing point is below ambient temperature Feb 02 20:38:47 for windshield wash it works :-D Feb 02 20:41:33 hehe booze in the windshield water is the perfect solution to ice on your windshield :P Feb 02 20:43:36 yeah Feb 02 20:44:53 hmm Feb 02 20:45:05 logitech MX 5500 Feb 02 20:45:45 i seem to be having a weird issue with bootmenu. i can't get BackupMenu to start with slide out. a reinstall of both doesn't help. i just remain with the white nokia logo till the timeout (30sec) ends, and i'm booted into maemo Feb 02 20:45:49 :/ Feb 02 20:47:16 get rid of bootmenu :P Feb 02 20:47:27 ~bootmenu Feb 02 20:47:28 :D Feb 02 20:47:40 i wish i could. but i need it for BackupMenu Feb 02 20:47:54 ah then I confused it with multiboot or so. Feb 02 20:47:55 btw, u are not confusing it with multi-boot, are u? Feb 02 20:48:02 ah, guessed so :D Feb 02 20:48:07 :-) Feb 02 20:48:10 ~multiboot Feb 02 20:48:11 [multiboot] at http://www.cantech.net.au/plug/08-1998/287.html Feb 02 20:48:23 wtf? Feb 02 20:48:37 ~#maemo multiboot Feb 02 20:49:02 o.O Feb 02 20:49:21 ~nitdroid Feb 02 20:49:21 hmm... nitdroid is Nokia Internet Tablets with android OS. Support on nitdroid is provided in the channel #nitdroid and #nitdroid-help and Nokia does not officially support owners with android OS on their tablets. For more information read here: http://nitdroid.com/index.php?title=NITDroid_project. If you have bricked your N900 device and have installed nitdroid, flash with both eMMC and fiasco. Feb 02 20:49:37 ~maemo-multiboot Feb 02 20:49:37 methinks maemo-multiboot is deprecated, and a horrible hack. PROBLEMS WITH NITDROID/MULTIBOOT? reflash rootfs&kernel aka COMBINED Feb 02 20:49:46 ~infobot Feb 02 20:49:46 ~factinfo multiboot Feb 02 20:49:46 from memory, infobot is happy Feb 02 20:49:47 multiboot -- it has been requested 8 times, last by DocScrutinizer, 1m 36s ago. Feb 02 20:49:58 aaah Feb 02 20:50:25 ~aah:-) Feb 02 20:50:30 ~#maemo multiboot is see maemo-multiboot Feb 02 20:50:31 DocScrutinizer: okay Feb 02 20:50:41 ~#maemo multiboot is see maemo-multiboot Feb 02 20:50:41 ...but #maemo multiboot is already something else... Feb 02 20:50:58 infobot: no, #maemo multiboot is see maemo-multiboot Feb 02 20:50:58 DocScrutinizer: okay Feb 02 20:51:08 ~multiboot Feb 02 20:51:08 hmm... multiboot is at http://www.cantech.net.au/plug/08-1998/287.html Feb 02 20:51:24 ~#maemo multiboot Feb 02 20:51:25 maemo-multiboot is, like, deprecated, and a horrible hack. PROBLEMS WITH NITDROID/MULTIBOOT? reflash rootfs&kernel aka COMBINED Feb 02 20:51:29 btw, that link is blank DocScrutinizer, at least for me Feb 02 20:52:16 it keeps telling me to update maemo multiboot Feb 02 20:52:33 I can't remember why it's on there Feb 02 20:52:44 nothing multiboots anyway Feb 02 20:52:44 ~factinfo multiboot Feb 02 20:52:45 multiboot -- it has been requested 9 times, last by DocScrutinizer, 1m 36s ago. Feb 02 20:53:16 seems defect Feb 02 20:53:39 ~factinfo #maemo multiboot Feb 02 20:53:40 #maemo multiboot -- created by DocScrutinizer <~halley@openmoko/engineers/joerg> 3m 9s ago; last modified 2m 41s ago by DocScrutinizer!~halley@openmoko/engineers/joerg; it has been requested once, last by DocScrutinizer, 2m 15s ago. Feb 02 20:57:33 ~multiboot Feb 02 20:57:34 extra, extra, read all about it, maemo-multiboot is deprecated, and a horrible hack. PROBLEMS WITH NITDROID/MULTIBOOT? reflash rootfs&kernel aka COMBINED Feb 02 20:58:10 if only i could get bootmenu to work again.. Feb 02 20:58:20 what version of libc6 do u guys have? Feb 02 20:58:48 bootmenu is a shell script Feb 02 20:59:12 is there a working version of ubuntu yet? Feb 02 21:00:24 Estel_; i dont think it was me, but stride-width, stripe-width or something like that? Feb 02 21:00:24 yes DocScrutinizer ... Feb 02 21:12:12 fosdem anyone? Feb 02 21:12:35 y Feb 02 21:13:34 * rZr _o/ Feb 02 21:18:57 jacekowski: are you ? Feb 02 21:19:03 yes Feb 02 21:19:46 if the earth do not freeze since that day Feb 02 21:19:58 before that day Feb 02 21:20:06 well, it's tomorrow Feb 02 21:20:31 i'll be in bxl tomorrow nite Feb 02 21:30:26 thanks ShadowJK, will check that Feb 02 21:31:40 fosdem? can't afford such fun Feb 02 22:40:12 DocScrutinizer: afford? Feb 02 22:40:16 its a free conference Feb 02 22:40:25 and afaik you live in germany Feb 02 22:40:38 so you're only a small drive away ... Feb 02 22:52:23 another noob devel question: while writin sh script, may use a || after a command, and thing written after it gets executed in case, that command *before* dual-pipe fail Feb 02 22:52:45 so, DO foo || echo bar Feb 02 22:52:55 results in bar, when foo fails Feb 02 22:53:16 yet, if I try to DO foo || echo bar && exit Feb 02 22:53:49 it exits no matter if foo suceed or not, as thing after && is recognized as next command (not as after-|| content) Feb 02 22:54:42 any other, better way to include failsafe mechanism in my scripts? preferrably, one that doesn't include epic IF cascades? Feb 02 22:54:54 no DO Feb 02 22:55:38 generally, I want to write things, that inform user about errors *and* roll-back changes made before by this script *and* exit afterward Feb 02 22:55:48 a || b && c; is a bit tricky Feb 02 22:56:06 hm... Feb 02 22:56:20 use if; then; else Feb 02 22:56:50 ok, but how to prepare if that check if a was succeed? Feb 02 22:56:55 a && b is the same as if a; then b; fi; Feb 02 22:57:02 i.e. simple example Feb 02 22:57:06 yea, noticed that Feb 02 22:57:13 for example, i want Feb 02 22:57:26 swapon /dev/foo Feb 02 22:57:31 and in case of fail Feb 02 22:57:44 return info and exit Feb 02 22:57:56 then, later in script Feb 02 22:58:04 swapoff /dev/bar Feb 02 22:58:32 and in case of fail, inform user, swapoff /dev/foo #that was swapon before and exit Feb 02 22:58:37 and so goes on Feb 02 22:58:53 a && b is the same as if a; then b; fi; Feb 02 22:58:58 err Feb 02 22:59:00 sorry Feb 02 22:59:01 script, that in case of error at any stage, roll-back itself, inform, and exit, to not leave user with mess Feb 02 22:59:07 if ! false; then echo "been ok"; exit 0; fi Feb 02 22:59:28 Estel_: rollback is tricky Feb 02 22:59:32 help trap Feb 02 23:00:18 generally true, yet this script is relatively short and not complicated, so I though it's worth it Feb 02 23:01:01 best idea would be to check in advance if swap exist on /dev/foo, and if /dev/bar is swap type partition, yet inactive Feb 02 23:01:19 and execute only if initial requiments are met (one if) Feb 02 23:01:26 meet* Feb 02 23:01:39 man bash|less "+2/^ *trap" Feb 02 23:02:03 must be busybox compatible :P Feb 02 23:02:10 thanks anyway, will look into it Feb 02 23:02:11 no Feb 02 23:02:26 hm? Feb 02 23:03:02 trap IS busybox compatible. the above man invokation to learn about trap cmd isn't Feb 02 23:03:36 I see. Feb 02 23:03:47 thanks, looks appealing anyway Feb 02 23:03:59 I think I presume what does it mean for script ;) Feb 02 23:06:05 noob dilema continued - is this: Feb 02 23:06:15 >> If a sigspec is ERR, the command arg is executed whenever a simple command has a non-zero exit status Feb 02 23:06:23 if ! false; then echo "been ok"; exit 0; fi Feb 02 23:06:26 is same as Feb 02 23:06:37 if ! false; then echo "been ok"; ELSE exit 0; fi Feb 02 23:07:14 no, definitely and obviously different Feb 02 23:08:24 ok, I get how trap works now, thanks a lot! Feb 02 23:08:36 (topic-jumper) Feb 02 23:09:01 if ! false; then echo "been ok"; else echo "exit 0"; fi; echo "never been here after >exit 0<" Feb 02 23:12:11 ok, so I correctly thing that (or I am wrong again): Feb 02 23:13:07 if ! true; then echo "went bad"; else continue fi; Feb 02 23:13:25 think/ not thing Feb 02 23:17:32 yes Feb 02 23:19:29 trap is a bit tricky, but extramely useful Feb 02 23:21:10 trap "echo byebye; exit 0" EXIT Feb 02 23:21:13 is a bad idea Feb 02 23:23:39 usually you have a >> cleanup () { trap "" EXIT; echo byebye; exit 0; } << and then a >> trap cleanup EXIT << at some early point in your script Feb 02 23:25:23 and you probably got some more nifty code for >>errorhandler () { whatever }<< and then >>trap errorhandler ERR Feb 02 23:27:15 and you either change the way errorhandler() works, by defining some env like tmpfileopened=true Feb 02 23:27:17 or Feb 02 23:31:58 you got errorhandlerA () { rm tmpfileA ; return}; errorhandlerB() { rm fileB; errorhandlerA; return}; errorhandlerC () { errohandlerB; echo "" >someotherfile; echo "duck and cover!"; return} Feb 02 23:32:10 and then of course: Feb 02 23:32:25 trap errorhandlerA ERR Feb 02 23:32:56 echo "" >tmpfileA Feb 02 23:33:11 trap errorhandlerB ERR Feb 02 23:33:29 cp foobar fileB Feb 02 23:34:43 you (tnaks to not so strict syntax for shellscripts) can interleave the traps AND the function defs for errohandlerB etc Feb 02 23:34:57 s/tnaks/thanks/ Feb 02 23:34:57 DocScrutinizer meant: you (thanks to not so strict syntax for shellscripts) can interleave the traps AND the function defs for errohandlerB etc Feb 02 23:35:05 rm! Feb 02 23:35:09 * rm_work waves and disappears again Feb 02 23:36:15 does your highlight also trigger on warm warmaker carmanufacturer etc rm ? Feb 02 23:36:45 * DocScrutinizer waves Feb 02 23:37:27 dunno Feb 02 23:37:35 you included just "rm" so it highlighted on that :P Feb 02 23:37:48 arms are bad Feb 02 23:37:51 nope :) Feb 02 23:37:59 \wrm\w Feb 02 23:38:07 :nod: Feb 02 23:38:26 in linux related channels it becomes a problem though <_< Feb 02 23:39:10 the default workinf hours at my employer's office tend to becomme a problem Feb 02 23:39:21 anyway Feb 02 23:39:30 * DocScrutinizer waves and says "N8" Feb 02 23:41:53 thus: Feb 02 23:42:13 errorhandlerA () { rm tmpfileA ; return}; Feb 02 23:42:26 trap errorhandlerA ERR Feb 02 23:42:41 echo "" >tmpfileA Feb 02 23:42:55 errorhandlerB() { rm fileB; errorhandlerA; return}; Feb 02 23:43:05 trap errorhandlerB ERR Feb 02 23:43:14 cp foobar fileB Feb 02 23:43:21 etc pp Feb 02 23:58:55 Thanks DocScrutinizer, it's definitely worth reading material Feb 02 23:59:23 yw Feb 02 23:59:25 * Estel_ saved this whole conversation for further referrence, and also waves goodnight Feb 03 02:01:39 i didnt know thre was a maemo irc **** ENDING LOGGING AT Fri Feb 03 02:59:57 2012