2 次程式碼提交

作者 SHA1 備註 提交日期
  Ignacio Falco 827abde2b5 Merge branch 'master' of http://git.bluekitsune.com/bluekitsune-public/customfiles 4 年之前
  Ignacio Falco c5c0d469a9 script to add and enable swapfile 4 年之前
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      addswap.sh

+ 7
- 0
addswap.sh 查看文件

@@ -0,0 +1,7 @@
1
+#! /bin/bash
2
+
3
+fallocate -l 3G /swapfile && \
4
+chmod 600 /swapfile && \
5
+mkswap /swapfile && \
6
+swapon /swapfile && \
7
+swapon --show

Loading…
取消
儲存