From 12fa3df06555c4ad6973602998a42446fbb52e70 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 7 Feb 2013 20:23:55 +0100 Subject: bare profile which enables usb-extroot --- .../profiles/usb_ext/customfiles/etc/config/fstab | 19 +++++++++++++++++++ .../profiles/usb_ext/customfiles/etc/config/network | 13 +++++++++++++ .../profiles/usb_ext/customfiles/etc/config/system | 8 ++++++++ .../usb_ext/customfiles/etc/dropbear/authorized_keys | 1 + minikrebs/profiles/usb_ext/customfiles/etc/shadow | 5 +++++ 5 files changed, 46 insertions(+) create mode 100644 minikrebs/profiles/usb_ext/customfiles/etc/config/fstab create mode 100644 minikrebs/profiles/usb_ext/customfiles/etc/config/network create mode 100644 minikrebs/profiles/usb_ext/customfiles/etc/config/system create mode 120000 minikrebs/profiles/usb_ext/customfiles/etc/dropbear/authorized_keys create mode 100644 minikrebs/profiles/usb_ext/customfiles/etc/shadow (limited to 'minikrebs/profiles/usb_ext/customfiles/etc') diff --git a/minikrebs/profiles/usb_ext/customfiles/etc/config/fstab b/minikrebs/profiles/usb_ext/customfiles/etc/config/fstab new file mode 100644 index 00000000..b1e678dc --- /dev/null +++ b/minikrebs/profiles/usb_ext/customfiles/etc/config/fstab @@ -0,0 +1,19 @@ +config global automount + option from_fstab 1 + option anon_mount 1 + +config global autoswap + option from_fstab 1 + option anon_swap 0 + +config mount + option target /overlay + option device /dev/sda1 + option fstype ext4 + option options rw,sync + option enabled 1 + option enabled_fsck 0 + +config swap + option device /dev/sda2 + option enabled 1 diff --git a/minikrebs/profiles/usb_ext/customfiles/etc/config/network b/minikrebs/profiles/usb_ext/customfiles/etc/config/network new file mode 100644 index 00000000..e6a96379 --- /dev/null +++ b/minikrebs/profiles/usb_ext/customfiles/etc/config/network @@ -0,0 +1,13 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + +config interface 'lan' + option ifname 'eth0' + option proto 'dhcp' + +config interface 'wan' + option ifname 'wlan0' + option proto 'dhcp' diff --git a/minikrebs/profiles/usb_ext/customfiles/etc/config/system b/minikrebs/profiles/usb_ext/customfiles/etc/config/system new file mode 100644 index 00000000..3c5a6935 --- /dev/null +++ b/minikrebs/profiles/usb_ext/customfiles/etc/config/system @@ -0,0 +1,8 @@ +config system + option hostname bare + option timezone UTC + +config 'led' 'lan_led' + option 'name' 'blue-led' + option 'sysfs' 'tp-link:blue:system' + option 'trigger' 'default-on' diff --git a/minikrebs/profiles/usb_ext/customfiles/etc/dropbear/authorized_keys b/minikrebs/profiles/usb_ext/customfiles/etc/dropbear/authorized_keys new file mode 120000 index 00000000..9c87fc52 --- /dev/null +++ b/minikrebs/profiles/usb_ext/customfiles/etc/dropbear/authorized_keys @@ -0,0 +1 @@ +/root/.ssh/authorized_keys \ No newline at end of file diff --git a/minikrebs/profiles/usb_ext/customfiles/etc/shadow b/minikrebs/profiles/usb_ext/customfiles/etc/shadow new file mode 100644 index 00000000..9cc800dd --- /dev/null +++ b/minikrebs/profiles/usb_ext/customfiles/etc/shadow @@ -0,0 +1,5 @@ +root:$1$WFDw.yoc$MuPQ4h/nu3WMpHmte5Yrp/:15719:0:99999:7::: +daemon:*:0:0:99999:7::: +ftp:*:0:0:99999:7::: +network:*:0:0:99999:7::: +nobody:*:0:0:99999:7::: -- cgit v1.2.3