Eventscripts: fix basename -> dirname typo
authorMartin Schwenke <martin@meltin.net>
Tue, 24 Apr 2012 07:17:07 +0000 (17:17 +1000)
committerMartin Schwenke <martin@meltin.net>
Fri, 27 Apr 2012 05:42:42 +0000 (15:42 +1000)
I fixed one of these previously but didn't notice this one...  :-(

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/events.d/13.per_ip_routing

index 9a2c346ee5834e16be48b96e9e1e7af187dec5d9..07687c0f5f4b101274ae04990a5633dabcd0e50a 100755 (executable)
@@ -136,7 +136,7 @@ clean_up_table_ids ()
     # Even if this didn't exist on the system, adding a route will
     # have created it.  What if we startup and immediately shutdown?
     if [ ! -f "$_f" ] ; then
-       mkdir -p $(basename "$_f")
+       mkdir -p $(dirname "$_f")
        touch "$_f"
     fi