Advertisement
s243a

unloadNewModule() - Puppylinux - Network Wizard

Nov 27th, 2016
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. unloadNewModule()
  2. {
  3. # unload newly loaded module
  4. modprobe -r "$NEWLOADED"
  5. grep -v "$NEWLOADED" /etc/ethernetmodules > /etc/ethernetmodules.tmp
  6. #sync
  7. mv -f /etc/ethernetmodules.tmp /etc/ethernetmodules
  8. TOPMSG="$L_TOPMSG_Module_Unloaded_p1 '$NEWLOADED' $L_TOPMSG_Module_Unloaded_p2 '$NEWLOADED' $L_TOPMSG_Module_Unloaded_p3"
  9.  
  10. setDefaultMODULEBUTTONS
  11.  
  12. refreshMainWindowInfo
  13. } # end unloadNewModule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement