<PAGE>   1

                                                                    EXHIBIT 10.5

                                ENERNETICS, INC.

                       RESTRICTED STOCK PURCHASE AGREEMENT

       THIS AGREEMENT is made this 8th day of January, 1998, between EnerNetics,
Inc., a California corporation (the "Company"), and John Woolard (the
"Purchaser").

       WHEREAS in order to give the Purchaser an opportunity to acquire an
equity interest in the Company as an incentive for the Purchaser to continue as
an employee of the Company, the Company is willing to sell to the Purchaser and
the Purchaser desires to purchase shares of Common Stock according to the terms
and conditions contained herein.

       THEREFORE, the parties agree as follows:

       1. Sale of Stock. The Company hereby agrees to sell to the Purchaser and
the Purchaser hereby agrees to purchase an aggregate of 1,666,667 shares of the
Company's Common Stock (the "Shares"), at the price of $ 0.003 per share for an
aggregate purchase price of $5,000.00.

       2. Payment of Purchase Price. The purchase price for the Shares shall be
paid by the delivery to the Company at the time of execution of this Agreement
of a check payable to the Company and the assignment to the Company of the
property described on Exhibit A, having a combined value of $5,000.00.

       3. Repurchase Option.

              (a) In the event of any voluntary or involuntary termination of
the Purchaser's employment by or services to the Company for any or no reason
(including death or disability) before all of the Shares are released from the
Company's repurchase option (see Section 4), the Company shall, upon the date of
such termination (as reasonably fixed and determined by the Company) have an
irrevocable, exclusive option for a period of ninety (90) days from such date to
repurchase all (but not less than all) of the Unreleased Shares (as defined in
Section 4) at such time at $ 0.003 per share (the "Repurchase Price"). Said
option shall be exercised by the Company by written notice to the Purchaser or
the Purchaser's executor (with a copy to the Escrow Holder) and, at the
Company's option, (i) by delivery to the Purchaser or the Purchaser's executor
with such notice of a check in the amount of the Repurchase Price for the Shares
being repurchased, or (ii) by cancellation by the Company of an amount of the
Purchaser's indebtedness to the Company equal to the Repurchase Price for the
Shares being repurchased, or (iii) by a combination of (i) and (ii) so that the
combined payment and cancellation of indebtedness equals such Repurchase Price.
Upon delivery of such notice and the payment of the Repurchase Price in any of
the ways described above, the Company shall become the legal and beneficial
owner of the Shares being repurchased and all rights and interests therein or
relating thereto, and the Company shall have the right to retain and transfer to
its own name the number of Shares being repurchased by the Company.

              (b) Whenever the Company shall have the right to repurchase Shares
hereunder, the Company may designate and assign one or more employees, officers,
directors or shareholders of the Company or other persons or organizations to
exercise all or a part of the Company's purchase
<PAGE>   2

rights under this Agreement and purchase all or a part of such Shares; provided
that if the fair market value of the Shares to be repurchased on the date of
such designation or assignment (the "Repurchase FMV") exceeds the Repurchase
Price of the Shares to be repurchased, then each such designee or assignee shall
pay the Company cash equal to the difference between the Repurchase FMV and the
Repurchase Price of the Shares which such designee or assignee shall have the
right to repurchase.

       4. Release of Shares From Repurchase Option.

              (a) One thirty-sixth (1/36) of the Shares shall be released from
the Company's repurchase option on January 31, 1998, and one thirty-sixth (1/36)
of the Shares shall be released from the Company's repurchase option on the last
day of each full calendar month thereafter, provided in each case that the
Purchaser's employment by or services to the Company have not been terminated
prior to the date of any such release.

              (b) Any of the Shares which have not yet been released from the
Company's repurchase option are referred to herein as "Unreleased Shares."

              (c) The Shares which have been released from the Company's
repurchase option shall be delivered to the Purchaser at the Purchaser's request
(see Section 6).

              (d) Notwithstanding anything set forth in this Section 4, all of
the Shares shall be released from the Company's repurchase option described in
Section 3 above upon the firmly underwritten initial public offering of the
Company's Common Stock, the merger or reorganization of the Company with or into
another corporation, entity or person or the sale of all of or substantially all
of the Company's assets to another corporation, entity or person, provided that
no release of Shares from the Company's repurchase option shall occur pursuant
to this Section 4(d) if immediately after such merger, reorganization or sale of
assets, at least 51% of the capital stock or equity interests in such other
corporation, entity or person are owned by persons who owned in the aggregate at
least 51% of the capital stock of the Company immediately before such merger,
reorganization or sale of assets.

       5. Restriction on Transfer. Except for the escrow described in Section 6
or transfer of the Shares to the Company or its assignees contemplated by this
Agreement, none of the Shares or any beneficial interest therein shall be
transferred, encumbered or otherwise disposed of in any way until the release of
such Shares from the Company's repurchase option in accordance with the
provisions of this Agreement, other than by will or the laws of descent and
distribution.

       6. Escrow of Shares.

              (a) The Shares issued under this Agreement shall be held by an
escrow holder designated by the Company (the "Escrow Holder"), along with a
stock assignment executed by the Purchaser in blank, until the expiration of the
Company's option to repurchase such Shares as set forth above.

              (b) The Escrow Holder is hereby directed to permit transfer of the
Shares only in accordance with this Agreement or instructions signed by both
parties. In the event further



                                      -2-
<PAGE>   3

instructions are desired by the Escrow Holder, the Escrow Holder shall be
entitled to rely upon directions executed by a majority of the authorized number
of the Company's Board of Directors. The Escrow Holder shall have no liability
for any act or omission hereunder while acting in good faith in the exercise of
the Escrow Holder's own judgment.

              (c) If the Company or any assignee exercises its repurchase option
hereunder, the Escrow Holder, upon receipt of written notice of such option
exercise from the proposed transferee, shall take all steps necessary to
accomplish such transfer.

              (d) When the repurchase option has been exercised or expires
unexercised or a portion of the Shares has been released from such repurchase
option, upon Purchaser's request the Escrow Holder shall promptly cause a new
certificate to be issued for such released Shares and shall deliver such
certificate to the Purchaser.

              (e) Subject to the terms hereof, the Purchaser shall have all the
rights of a shareholder with respect to such Shares while they are held in
escrow, including without limitation, the right to vote the Shares and receive
any cash dividends declared thereon. If, from time to time during the term of
the Company's repurchase option, there is (i) any stock dividend, stock split or
other change in the Shares, or (ii) any merger or sale of all or substantially
all of the assets or other acquisition of the Company, any and all new,
substituted or additional securities to which the Purchaser is entitled by
reason of the Purchaser's ownership of the Shares shall be immediately subject
to this escrow, deposited with the Escrow Holder and included thereafter as
"Shares" for purposes of this Agreement and the Company's repurchase option.

       7. Investment Representations; Restrictions on Transfer.

              (a) In connection with the purchase of the Shares, the Purchaser
represents to the Company the following:

                     (i)The Purchaser is aware of the Company's business affairs
and financial condition and has acquired sufficient information about the
Company to reach an informed and knowledgeable decision to acquire the Shares.
The Purchaser is purchasing these Shares for investment for the Purchaser's own
account only and not with a view to, or for resale in connection with, any
"distribution" thereof within the meaning of the Securities Act of 1933, as
amended (the "Securities Act").

                     (ii) The Purchaser acknowledges and understands that the
Shares constitute "restricted securities" under the Securities Act and must be
held indefinitely unless they are subsequently registered under the Securities
Act or an exemption from such registration is available. The Purchaser further
acknowledges and understands that the Company is under no obligation to register
the Shares. The Purchaser understands that the certificate evidencing the Shares
will be imprinted with a legend which prohibits the transfer of the Shares
unless they are registered or such registration is not required in the opinion
of counsel satisfactory to the Company.

                     (iii) The Purchaser is familiar with the provisions of Rule
701 and Rule 144, each promulgated under the Securities Act, which, in
substance, permit limited public resale of



                                      -3-
<PAGE>   4

"restricted securities" acquired, directly or indirectly, from the issuer
thereof, in a non-public offering subject to the satisfaction of certain
conditions. Rule 701 provides that if the issuer qualifies under Rule 701 at the
time of issuance of the securities to the Purchaser, such issuance will be
exempt from registration under the Securities Act. In the event the Company
later becomes subject to the reporting requirements of Section 13 or 15(d) of
the Securities Exchange Act of 1934, ninety (90) days thereafter the securities
exempt under Rule 701 may be resold, subject to the satisfaction of certain of
the conditions specified by Rule 144, including among other things: (1) the sale
being made through a broker in an unsolicited "broker's transaction" or in
transactions directly with a market maker (as said term is defined under the
Securities Exchange Act of 1934); and, in the case of an affiliate, (2) the
availability of certain public information about the Company, and the amount of
securities being sold during any three month period not exceeding the
limitations specified in Rule 144(e), if applicable. Notwithstanding this
paragraph 7(a)(iii), the Purchaser acknowledges and agrees to the restrictions
set forth in paragraph 7(b).

       In the event that the Company does not qualify under Rule 701 at the time
of issuance of the securities to the Purchaser, then the securities may be
resold in certain limited circumstances subject to the provisions of Rule 144,
which requires among other things: (1) the availability of certain public
information about the Company: (2) the resale occurring not less than one year
after the party has purchased, and made full payment for, within the meaning of
Rule 144, the securities to be sold; and (3) in the case of an affiliate, or of
a non-affiliate who has held the securities less than two years, the sale being
made through a broker in an unsolicited "broker's transaction" or in
transactions directly with a market maker (as said term is defined under the
Securities Exchange Act of 1934) and the amount of securities being sold during
any three month period not exceeding the specified limitations stated therein,
if applicable.

              (b) The Purchaser agrees, in connection with the Company's initial
underwritten public offering of the Company's securities, (1) not to sell, make
short sale of, loan, grant any options for the purchase of, or otherwise dispose
of any shares of Common Stock of the Company held by the Purchaser (other than
those shares included in the registration) without the prior written consent of
the Company or the underwriters managing such initial underwritten public
offering of the Company's securities for one hundred eighty (180) days from the
effective date of such registration, (2) further agrees to execute any agreement
reflecting (1) above as may be requested by the underwriters at the time of the
public offering and (3) further agrees that the Company may impose stop transfer
instructions in order to enforce the foregoing covenants.

       8. Legends. The share certificate evidencing the Shares issued hereunder
shall be endorsed with the following legends (in addition to any legend required
under applicable state securities laws):

              (a) THE SHARES REPRESENTED BY THIS CERTIFICATE HAVE BEEN ACQUIRED
FOR INVESTMENT AND NOT WITH A VIEW TO, OR IN CONNECTION WITH, THE SALE OR
DISTRIBUTION THEREOF. NO SUCH SALE OR DISPOSITION MAY BE EFFECTED WITHOUT AN
EFFECTIVE REGISTRATION STATEMENT RELATED THERETO OR AN OPINION OF COUNSEL
SATISFACTORY TO THE COMPANY THAT SUCH REGISTRATION IS NOT REQUIRED UNDER THE
SECURITIES ACT OF 1933.



                                      -4-
<PAGE>   5

              (b) THE SHARES REPRESENTED BY THIS CERTIFICATE MAY BE TRANSFERRED
ONLY IN ACCORDANCE WITH THE TERMS OF AN AGREEMENT BETWEEN THE COMPANY AND THE
SHAREHOLDER, A COPY OF WHICH IS ON FILE WITH THE SECRETARY OF THE COMPANY.

       9. Adjustment for Stock Split. All references to the number of Shares and
the purchase price of the Shares in this Agreement shall be appropriately
adjusted to reflect any stock split, stock dividend or other change in the
Shares which may be made by the Company after the date of this Agreement.

       10. Tax Consequences. The Purchaser has reviewed with the Purchaser's own
tax advisors the federal, state, local and foreign tax consequences of this
investment and the transactions contemplated by this Agreement. The Purchaser is
relying solely on such advisors and not on any statements or representations of
the Company or any of its agents. The Purchaser understands that the Purchaser
(and not the Company) shall be responsible for the Purchaser's own tax liability
that may arise as a result of this investment or the transactions contemplated
by this Agreement. The Purchaser understands that Section 83 of the Internal
Revenue Code of 1986, (the "Code"), taxes as ordinary income both (i) the
difference between the fair market value of the Shares when the Company granted
the Purchaser the right to purchase the Shares and the fair market value of the
Shares on the date of this Agreement and (ii) the difference between the amount
paid for the Shares and the fair market value of the Shares as of the date any
restrictions on the Shares lapse. In this context, "restriction" includes the
right of the Company to buy back the Shares pursuant to its repurchase option.
In the event the Company has registered under the Exchange Act, "restriction"
with respect to officers, directors and 10% shareholders also means the period
after the purchase of the Shares during which such officers, directors and 10%
shareholders could be subject to suit under Section 16(b) of the Exchange Act.
The Purchaser understands that the Purchaser may elect to be taxed at the time
the Shares are purchased rather than when and as the Company's repurchase option
or 16(b) period expires by filing an election under Section 83(b) of the Code
with the I.R.S. within 30 days from the date of purchase.

       THE PURCHASER ACKNOWLEDGES THAT IT IS THE PURCHASER'S SOLE RESPONSIBILITY
AND NOT THE COMPANY'S TO FILE TIMELY THE ELECTION UNDER SECTION 83(b), EVEN IF
THE PURCHASER REQUESTS THE COMPANY OR ITS REPRESENTATIVES TO MAKE THIS FILING ON
THE PURCHASER'S BEHALF.

       11. General Provisions.

              (a) This Agreement shall be governed by the laws of the State of
California. This Agreement represents the entire agreement between the parties
with respect to the purchase of Common Stock by the Purchaser and may only be
modified or amended in writing signed by both parties.

              (b) Any notice, demand or request required or permitted to be
given by either the Company or the Purchaser pursuant to the terms of this
Agreement shall be in writing and shall be deemed given when delivered
personally or deposited in the U.S. mail, First Class with postage



                                      -5-
<PAGE>   6

prepaid, and addressed to the parties at the addresses of the parties set forth
at the end of this Agreement or such other address as a party may request by
notifying the other in writing.

       Any notice to the Escrow Holder shall be sent to the Company's address
with a copy to the other party not sending the notice.

              (c) The rights and benefits of the Company under this Agreement
shall be transferable to any one or more persons or entities, and all covenants
and agreements hereunder shall inure to the benefit of, and be enforceable by
the Company's successors and assigns. The rights and obligations of the
Purchaser under this Agreement may only be assigned with the prior written
consent of the Company.

              (d) Either party's failure to enforce any provision or provisions
of this Agreement shall not in any way be construed as a waiver of any such
provision or provisions, nor prevent that party thereafter from enforcing each
and every other provision of this Agreement. The rights granted both parties
herein are cumulative and shall not constitute a waiver of either party's right
to assert all other legal remedies available to it under the circumstances.

              (e) The Purchaser agrees upon request to execute any further
documents or instruments necessary or desirable to carry out the purposes or
intent of this Agreement.

              (f) PURCHASER ACKNOWLEDGES AND AGREES THAT THE VESTING OF SHARES
PURSUANT TO SECTION 4 HEREOF IS EARNED ONLY BY CONTINUING SERVICE AS AN EMPLOYEE
OR CONSULTANT AT THE WILL OF THE COMPANY (NOT THROUGH THE ACT OF BEING HIRED OR
PURCHASING SHARES HEREUNDER). PURCHASER FURTHER ACKNOWLEDGES AND AGREES THAT
THIS AGREEMENT, THE TRANSACTIONS CONTEMPLATED HEREUNDER AND THE VESTING SCHEDULE
SET FORTH HEREIN DO NOT CONSTITUTE AN EXPRESS OR IMPLIED PROMISE OF CONTINUED
ENGAGEMENT AS AN EMPLOYEE OR CONSULTANT FOR THE VESTING PERIOD, FOR ANY PERIOD,
OR AT ALL, AND SHALL NOT INTERFERE WITH PURCHASER'S RIGHT OR THE COMPANY'S RIGHT
TO TERMINATE PURCHASER'S EMPLOYMENT OR CONSULTING RELATIONSHIP AT ANY TIME, WITH
OR WITHOUT CAUSE.

              (g) SALE OF THE SECURITIES WHICH ARE THE SUBJECT OF THIS AGREEMENT
HAS NOT BEEN QUALIFIED WITH THE COMMISSIONER OF CORPORATIONS OF THE STATE OF
CALIFORNIA AND THE ISSUANCE OF SUCH SECURITIES OR THE PAYMENT OR RECEIPT OF ANY
PART OF THE CONSIDERATION THEREFOR PRIOR TO SUCH QUALIFICATION IS UNLAWFUL,
UNLESS THE SALE OF SECURITIES IS EXEMPT FROM THE QUALIFICATION BY SECTION 25100,
25102, OR 25105 OF THE CALIFORNIA CORPORATIONS CODE. THE RIGHTS OF ALL PARTIES
TO THIS AGREEMENT ARE EXPRESSLY CONDITIONED UPON SUCH QUALIFICATION BEING
OBTAINED, UNLESS THE SALE IS SO EXEMPT.



                                      -6-
<PAGE>   7

       IN WITNESS WHEREOF, the parties have duly executed this Agreement as of
the day and year first set forth above.

ENERNETICS, INC.                                   PURCHASER
a California corporation


By:  /s/ DALE M. FONG                         /s/ JOHN WOOLARD
   --------------------------------         ------------------------------------
                                            John Woolard

Title:
      -----------------------------





1 Ross Road                                 ------------------------------------
Alameda, CA  94502                          (Address)



<PAGE>   8

                                CONSENT OF SPOUSE

       I, ____________________, spouse of John Woolard, have read and approve
the foregoing Agreement. In consideration of granting of the right to my spouse
to purchase 1,666,667 shares of Common Stock of EnerNetics, Inc., as set forth
in the Agreement, I hereby appoint my spouse as my attorney-in-fact in respect
to the exercise of any rights under the Agreement and agree to be bound by the
provisions of the Agreement insofar as I may have any rights in said Agreement
or any shares issued pursuant thereto under the community property laws of the
State of California or similar laws relating to marital property in effect in
the state of our residence as of the date of the signing of the foregoing
Agreement.

Dated:  January __, 1998





                                        ----------------------------------------
                                        (signature)



<PAGE>   9

                      ASSIGNMENT SEPARATE FROM CERTIFICATE

       FOR VALUE RECEIVED I, John Woolard, hereby sell, assign and transfer unto
(__________) shares of the Common Stock of EnerNetics, Inc. standing in my name
on the books of said corporation represented by Certificate No. _____ herewith
and do hereby irrevocably constitute and appoint Wilson Sonsini Goodrich &
Rosati, attorney, to transfer the said stock on the books of the within named
corporation with full power of substitution in the premises.

       This Stock Assignment may be used only in accordance with the Stock
Purchase Agreement between EnerNetics, Inc. and the undersigned dated
______________, 19__.

Dated: _______________, 19




                                        ----------------------------------------
                                        Signature:















INSTRUCTION: Please do not fill in any blanks other than the signature line. The
purpose of this assignment is to enable the Company to exercise its "repurchase
option" set forth in the Agreement without requiring additional signatures on
the part of the Purchaser.



<PAGE>   10

                          ELECTION UNDER SECTION 83(b)
                      OF THE INTERNAL REVENUE CODE OF 1986

The undersigned taxpayer hereby elects, pursuant to the above-referenced Federal
Tax Code, to include in taxpayer's gross income for the current taxable year,
the amount of any compensation taxable to taxpayer in connection with his
receipt of the property described below:

1.     The name, address, taxpayer identification number and taxable year of the
       undersigned are as follows:

       NAME:                       TAXPAYER:                    SPOUSE:
       ADDRESS:

       IDENTIFICATION NO.:         TAXPAYER:                    SPOUSE:

       TAXABLE YEAR:  1998

2.     The property with respect to which the election is made is described as
       follows: 1,666,667 shares (the "Shares") of the Common Stock of
       EnerNetics, Inc. (the "Company").

3.     The date on which the property was transferred is: January 8, 1998.

4.     The property is subject to the following restrictions:

       The Shares may be repurchased by the Company, or its assignee, on certain
       events. This right lapses with regard to a portion of the Shares over
       time.

5.     The fair market value at the time of transfer, determined without regard
       to any restriction other than a restriction which by its terms will never
       lapse, of such property is:

       $0.003 per share

6.     The amount (if any) paid for such property is:

       $0.003 per share

The undersigned has submitted a copy of this statement to the person for whom
the services were performed in connection with the undersigned's receipt of the
above-described property. The transferee of such property is the person
performing the services in connection with the transfer of said property.

The undersigned understands that the foregoing election may not be revoked
except with the consent of the Commissioner.

Dated:                                       Taxpayer:
      ---------------------------------               --------------------------
                                                               Taxpayer

The undersigned spouse of taxpayer joins in this election.

Dated:                                       Taxpayer:
      ---------------------------------               --------------------------
                                                          Spouse of Taxpayer



<PAGE>   11

                                    EXHIBIT A

                        PROPERTY ASSIGNED TO THE COMPANY



                PROPERTY                               FAIR MARKET VALUE
----------------------------------------     -----------------------------------