WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: run mnttool when new drive add  (Read 5183 times)

Offline mata

  • Newbie
  • *
  • Posts: 1
run mnttool when new drive add
« on: July 18, 2011, 08:17:24 AM »
Hello!

I have interested about next topic:
http://forum.tinycorelinux.net/index.php?topic=10602.msg56352#msg5635

And I make efforts for execute mnttool, automatically. After all, I append following line to /usr/sbin/rebuildfstab file:
test "$ACTION" = add  && su $(cat /etc/sysconfig/tcuser) -c 'DISPLAY=:0.0 /usr/bin/mnttool'

How about  this way.