Thread: [Ndiswrapper-general] install.sh: selection of /etc/mod(ules|probe).conf, setting basename
Status: Beta
Brought to you by:
pgiri
From: Timo <ti...@ti...> - 2003-12-30 16:08:53
Attachments:
install.sh.patch
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Giri, I modified install.sh to: - - autodetect which /etc/mod(ules|probe).conf to use - - set basename - - automatically run update-modules on 2.4 debian - - only ask for interface name if not already configured patch attached. Timo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iQEVAwUBP/GjBEn74FOC+06tAQKOqAf/dx/wQTmMNdalXxoqGyV66d+mPZE33qeB cpUCcpdNAa0Mu8vOROYdokuLvzN9jhICqNOpoTZ7HXki45KlFqMg1WZbsYxJHO8h iP25b5/H3kfTd3xmF0s98QB9wz0ncROR8nqo0Zv3O2kDrSf9Nshz1PBagQsJraxb RrTpdIcOhohGS2NFyVXkXkiIY6WKG4cgf8oCitemZpyhNnQtr6gP2REUpzXq8eAi gntxhdcGUoTDgYxUCjBLiyJqeJfmiNjHUCaWCg30TTz4X2zara0DKRLRoWbhXpYP +NcCEuXMCkInjXbKmQDQjzy5nLwdJ9ZInleNMLdVL/H+H4PunkCj9w== =9+ga -----END PGP SIGNATURE----- |
From: Jerome B. <jgm...@wa...> - 2003-12-30 16:20:30
|
what about the post-install line in the Debian data file /etc/modutils/ndiswrapper ? Timo Weing=E4rtner wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi Giri, >=20 > I modified install.sh to: > - - autodetect which /etc/mod(ules|probe).conf to use > - - set basename > - - automatically run update-modules on 2.4 debian > - - only ask for interface name if not already configured >=20 > patch attached. >=20 > Timo > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) >=20 > iQEVAwUBP/GjBEn74FOC+06tAQKOqAf/dx/wQTmMNdalXxoqGyV66d+mPZE33qeB > cpUCcpdNAa0Mu8vOROYdokuLvzN9jhICqNOpoTZ7HXki45KlFqMg1WZbsYxJHO8h > iP25b5/H3kfTd3xmF0s98QB9wz0ncROR8nqo0Zv3O2kDrSf9Nshz1PBagQsJraxb > RrTpdIcOhohGS2NFyVXkXkiIY6WKG4cgf8oCitemZpyhNnQtr6gP2REUpzXq8eAi > gntxhdcGUoTDgYxUCjBLiyJqeJfmiNjHUCaWCg30TTz4X2zara0DKRLRoWbhXpYP > +NcCEuXMCkInjXbKmQDQjzy5nLwdJ9ZInleNMLdVL/H+H4PunkCj9w=3D=3D > =3D9+ga > -----END PGP SIGNATURE----- >=20 >=20 > -----------------------------------------------------------------------= - >=20 > --- install.sh 2003-12-21 13:32:10.000000000 +0100 > +++ install.sh.new 2003-12-30 17:06:58.000000000 +0100 > @@ -170,18 +170,32 @@ > =20 > # configure modules > =20 > -get_resp "What interface should ndiswrapper configure?" "${IFACE_NAME}= " > -IFACE_NAME=3D${RESP} > - > if modprobe -c | grep -q ndiswrapper; then > warn "It seems modprobe is already configured for ndiswrapper; ass= uming it is correct. Otherwise, delete the current configuration and try = again." > else=20 > - > + =20 > + get_resp "What interface should ndiswrapper configure?" "${IFACE_N= AME}" > + IFACE_NAME=3D${RESP} > + BASENAME=3D$(echo -n ${IFACE_NAME} | sed -e 's/[0-9\ ]//g') > + =20 > + if [ ${KVERSMINOR} -gt 4 ]; then > + # 2.6 > + MOD_CONF=3D/etc/modprobe.conf > + elif [ -f /etc/debian_version ]; then > + # 2.4 debian > + MOD_CONF=3D/etc/modutils/ndiswrapper > + else > + # 2.4 non-debian > + MOD_CONF=3D/etc/modules.conf > + fi > + =20 > get_resp "Where should module directives be placed?" "${MOD_CONF}" > MOD_CONF=3D${RESP}=20 > if :; then > echo "alias ${IFACE_NAME} ndiswrapper" > =09 > + echo "options ndiswrapper basename=3D${BASENAME}" > +=09 > if [ ${KVERSMINOR} -gt 4 ]; then > echo -n "install ndiswrapper /sbin/modprobe --ignore-install ndis= wrapper; " > else > @@ -189,6 +203,10 @@ > fi > echo "${LOADER} ${VENDOR_ID} ${DEVICE_ID} ${SYS} ${INF}" > fi >> ${MOD_CONF} > + =20 > + if [ ${KVERSMINOR} -le 4 ] && [ -f /etc/debian_version ]; then > + /sbin/update-modules > + fi > =20 > fi > exit 0 |
From: Jerome B. <jgm...@wa...> - 2003-12-30 16:27:56
|
Just forget it: I have just realized that the post-install line is already in the=20 install.sh scrip. Jerome BENOIT wrote: > what about the post-install line in the Debian data file > /etc/modutils/ndiswrapper ? >=20 > Timo Weing=E4rtner wrote: >=20 >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi Giri, >> >> I modified install.sh to: >> - - autodetect which /etc/mod(ules|probe).conf to use >> - - set basename >> - - automatically run update-modules on 2.4 debian >> - - only ask for interface name if not already configured >> >> patch attached. >> >> Timo >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.2.3 (GNU/Linux) >> >> iQEVAwUBP/GjBEn74FOC+06tAQKOqAf/dx/wQTmMNdalXxoqGyV66d+mPZE33qeB >> cpUCcpdNAa0Mu8vOROYdokuLvzN9jhICqNOpoTZ7HXki45KlFqMg1WZbsYxJHO8h >> iP25b5/H3kfTd3xmF0s98QB9wz0ncROR8nqo0Zv3O2kDrSf9Nshz1PBagQsJraxb >> RrTpdIcOhohGS2NFyVXkXkiIY6WKG4cgf8oCitemZpyhNnQtr6gP2REUpzXq8eAi >> gntxhdcGUoTDgYxUCjBLiyJqeJfmiNjHUCaWCg30TTz4X2zara0DKRLRoWbhXpYP >> +NcCEuXMCkInjXbKmQDQjzy5nLwdJ9ZInleNMLdVL/H+H4PunkCj9w=3D=3D >> =3D9+ga >> -----END PGP SIGNATURE----- >> >> >> ----------------------------------------------------------------------= -- >> >> --- install.sh 2003-12-21 13:32:10.000000000 +0100 >> +++ install.sh.new 2003-12-30 17:06:58.000000000 +0100 >> @@ -170,18 +170,32 @@ >> =20 >> # configure modules >> =20 >> -get_resp "What interface should ndiswrapper configure?" "${IFACE_NAME= }" >> -IFACE_NAME=3D${RESP} >> - >> if modprobe -c | grep -q ndiswrapper; then >> warn "It seems modprobe is already configured for ndiswrapper;=20 >> assuming it is correct. Otherwise, delete the current configuration=20 >> and try again." >> else - >> + + get_resp "What interface should ndiswrapper configure?"=20 >> "${IFACE_NAME}" >> + IFACE_NAME=3D${RESP} >> + BASENAME=3D$(echo -n ${IFACE_NAME} | sed -e 's/[0-9\ ]//g') >> + + if [ ${KVERSMINOR} -gt 4 ]; then >> + # 2.6 >> + MOD_CONF=3D/etc/modprobe.conf >> + elif [ -f /etc/debian_version ]; then >> + # 2.4 debian >> + MOD_CONF=3D/etc/modutils/ndiswrapper >> + else >> + # 2.4 non-debian >> + MOD_CONF=3D/etc/modules.conf >> + fi >> + get_resp "Where should module directives be placed?"=20 >> "${MOD_CONF}" >> MOD_CONF=3D${RESP} if :; then >> echo "alias ${IFACE_NAME} ndiswrapper" >> =20 >> + echo "options ndiswrapper basename=3D${BASENAME}" >> + =20 >> if [ ${KVERSMINOR} -gt 4 ]; then >> echo -n "install ndiswrapper /sbin/modprobe --ignore-install=20 >> ndiswrapper; " >> else >> @@ -189,6 +203,10 @@ >> fi >> echo "${LOADER} ${VENDOR_ID} ${DEVICE_ID} ${SYS} ${INF}" >> fi >> ${MOD_CONF} >> + + if [ ${KVERSMINOR} -le 4 ] && [ -f /etc/debian_version ]; th= en >> + /sbin/update-modules >> + fi >> =20 >> fi >> exit 0 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's > Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dclick > _______________________________________________ > Ndiswrapper-general mailing list > Ndi...@li... > https://lists.sourceforge.net/lists/listinfo/ndiswrapper-general >=20 >=20 |