By using two movable five-note-shapes you can connect all the pentatonic box-shapes, and also play both the minor and major pentatonic scale over the entire fretboard.
Two shapes to connect the pentatonic boxes
There exists two adjacent 5-note-shapes to play the minor pentatonic scale on guitar, below the two shapes are labeled Shape 1 and Shape 2. Please note how both shapes contain the same 2- and 3-note shapes.
To connect the pentatonic box-shapes, shape 1 and 2 are movable in a diagonal direction.
Play the pentatonic scales over the entire fretboard
The two shapes 1 and 2 can also be moved horizontally to play the minor pentatonic scale over the entire fretboard. See below, shape 1 and 2 repeated diagonally and horizontally.
The major pentatonic scale can be played using the same over-all shapes as the minor pentatonic scale, be aware of the different scale degree pattern. See the below shapes labeled Shape I and Shape II.