1.
init reads a location of needed files from paths.h
The SHELL is defined there. Maybe you can change the
default shell only for single user in the init.c. Search for ':[sS1]:'
regexp in this file ...

2.
# This spec file was generated by Gideon
# Please report any problem to KDevelop Team <[EMAIL PROTECTED]>
# Thanks to Matthias Saou for his explanations on
http://freshrpms.net/docs/fight.html

Name: appName
Version: 0.1
Release: release
Vendor: Vendor
Copyright: License
Summary: Summary
Group: groupe
Packager: Packager
BuildRoot: %{_tmppath}/%{name}-root
Source: appName-0.1.tar.gz

%description
Description

%prep
%setup
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
--target=i386

%build
%configure
make

%install
rm -rf %{buildroot}
%makeinstall

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/%{name}
%{_mandir}/man8/*
%changelog


guy keren wrote:


> On Mon, 26 Jan 2004, Raichshtain Gilad wrote:
>
>
>
>> We're doing a project in OS. The project goal is to create a new
>> shell (from scrtch) and replace the root shell with this new
>> shell.
>>
>> We need help with the following issues:
>>
>>
>
> and you think someone will "jump for your command" and help you,
> when you've less then 24 hours to get this thing done?
>
> my first advice is: ask for a delay in delivering the project.
> you're bound not to make it on time.
>
>
>
>> 1. One of the project goals is to be able to run the shell as the
>> default shell at Single Mode. Two questions: Which file do I have
>> to update in order to make it the default shell at Single Mode ?
>> And what kind of initiations should I do in order for it to work
>> ? Anything else that might effect our execution in Single mode?
>>
>>
>
> assuming that your shell is not compatible with bourne shell, you
> cannot just replace the normall shell (/bin/sh) - you will be
> breaking down your entire system (e.g. the shell scripts, which
> handle launching of the system, will stop working).
>
> i am not sure how init knows which shell to run as the default
> shell for single-user mode. perhaps it uses the shell defined for
> user 'root' - try changing that iwth the 'chsh' command. do note
> that you'd better make sure your shell actually works, and that you
> have a currently open root-shell, before doing this. then try to
> login as root, see if this works. if not - you'll be able to use
> the still open root shell to change root to using the previous
> shell again (you did check which shell this is before making the
> switch - didn't you?).
>
> otherwise, you'll have to read the source code of 'init', in order
> to find which shell it uses for single-user mode. if this is a
> hrd-coded value, you're out of luck (unless you install a modified
> 'init' binary on your system....)
>
>
>
>> 2. We have to package our project using RPM. Does anyone have any
>>  simple sample for spec file that we can use?
>>
>>
>
> did you try searching for one on the internet? if not, now is the
> time...
>
>
>


-------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED]




Reply via email to