(a) Agreements restricting discretion of directors.--A written agreement among the shareholders of a statutory close corporation entitled to cast at least a majority of the votes that all shareholders are entitled to cast for the election of directors, whether solely among themselves or with a party not a shareholder, is not invalid, as between the parties to the agreement or the shareholders of the corporation, on the ground that it so relates to the conduct of the business and affairs of the corporation as to restrict or interfere with the discretion or powers of the board of directors.
(b) Effect of agreement.--The effect of any such agreement shall be to relieve the directors and impose upon the shareholders who are parties to the agreement the liability for acts or omissions that is imposed by law on directors to the extent and so long as the discretion or powers of the board in its direction of the management of corporate affairs is controlled by the agreement. Shareholders upon whom the liabilities of directors are imposed by this section shall to that extent be entitled to the rights and immunities conferred by this part and other provisions of law upon directors of a corporation.