summaryrefslogtreecommitdiff
path: root/nbfc-set
diff options
context:
space:
mode:
Diffstat (limited to 'nbfc-set')
-rwxr-xr-xnbfc-set12
1 files changed, 12 insertions, 0 deletions
diff --git a/nbfc-set b/nbfc-set
new file mode 100755
index 0000000..90fed27
--- /dev/null
+++ b/nbfc-set
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+if [ $1 == "--auto" ] || [ $1 == "auto" ] ; then
+ sudo nbfc set -f=0 -a
+ sudo nbfc set -f=1 -a
+ exit 1
+fi
+
+sudo nbfc set -f=0 -s $1
+sudo nbfc set -f=1 -s $1