It'll be useful if you could specify what version of Slackware you're on.
Then, can you please provide the output of the following commands before you unplug the eth0 cable and afterwards?
Code:
/usr/sbin/ip link show
/usr/sbin/ip addres show
/usr/sbin/ip route
I'm not using the rc.inet* scripts Slackware is providing but my own (personal preference) and I don't know them very well (how they are configuring the interfaces) but from a networking POV, after you unplug the eth0 you'll also loose the default gateway. The commands from above will show that.
If you don't like the bonding/fail-over solution that I suggested in my previous post, there is another way to achieve what you're looking after, but some manual steps would be required. You need to define two default routes for your two adapters (eth0,wlan0) with different metrics.
Again, not really knowing how rc.inet1 is doing the config (too tired now to parse it), you might have the possibility to leave the GATEWAY= empty in rc.inet1.conf and insert these lines in the rc.inet1 script, where the default GW is defined:
Code:
/usr/sbin/ip route add default via 192.168.1.1 metric 1 dev eth0
/usr/sbin/ip route add default via 192.168.1.1 metric 11 dev wlan0
You could also put these two lines in rc.local, but that script is executed very late and you might need connectivity before that.
P.S. While I was writing my post you already discovered ip route