Hi everyone. I work on the install team, and am working on an ITU-style menu the user will first see when booting the text-mode CD. This menu selects the installer and Device Driver Utility among other things. The menu is a ksh93 script started as an SMF service. The environment given to it via SMF is different than a usual login environment, and signals do not work.
Attached are the files which I put in /lib/svc/method, /var/svc/manifest/... and the menu itself which goes in /usr/sbin. The intent is for the script to mask signals (^C, abort, ^Z,^\, SIGTERM) so it cannot be exited, but to allow signals to be active in the commands it runs (installer, DDU, shell). Examples: I want to be able to run sleep from my script and ^C out of it; I want the shell run from my menu to see a ^C for processing. Using the attached files as a starting point, I tried modifying the manifest file to look more like what the original install-setup manifest (old installer) looked like (to depend on svc:/milestone/single-user, and to add to the startd property group: <propval name-'need_session' type='boolean' value='true' /> I also tried modifying the 'ignore_error' property, but then I checked the ARC case (PSARC/2004/524) and it turns out the ignore_error deals with errors requiring a restart, not what I am interested in. I looked at console-login service to see how it works and tried a dependency on svc:/milestone/sysconfig as it had; that didn't work either. Any suggestions? I'd greatly appreciate any help getting this to work. Thanks, Jack -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: text-mode-menu.lib_svc_method URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090929/0c1449c1/attachment.ksh> -------------- next part -------------- A non-text attachment was scrubbed... Name: text-mode-menu.var_svc_manifest_system Type: text/xml Size: 2305 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090929/0c1449c1/attachment.xml> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: text-mode-menu.usr_sbin URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20090929/0c1449c1/attachment-0001.ksh>